Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8aae9766
Commit
8aae9766
authored
Jan 04, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/io/*: make constructors "explicit"
parent
288b98cc
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
AutoGunzipReader.hxx
src/fs/io/AutoGunzipReader.hxx
+1
-1
BufferedOutputStream.hxx
src/fs/io/BufferedOutputStream.hxx
+1
-1
BufferedReader.hxx
src/fs/io/BufferedReader.hxx
+1
-1
FileOutputStream.hxx
src/fs/io/FileOutputStream.hxx
+1
-1
FileReader.hxx
src/fs/io/FileReader.hxx
+1
-1
GunzipReader.hxx
src/fs/io/GunzipReader.hxx
+1
-1
GzipOutputStream.hxx
src/fs/io/GzipOutputStream.hxx
+1
-1
PeekReader.hxx
src/fs/io/PeekReader.hxx
+1
-1
StdioOutputStream.hxx
src/fs/io/StdioOutputStream.hxx
+1
-1
TextFile.hxx
src/fs/io/TextFile.hxx
+1
-1
No files found.
src/fs/io/AutoGunzipReader.hxx
View file @
8aae9766
...
...
@@ -36,7 +36,7 @@ class AutoGunzipReader final : public Reader {
GunzipReader
*
gunzip
=
nullptr
;
public
:
AutoGunzipReader
(
Reader
&
_next
)
explicit
AutoGunzipReader
(
Reader
&
_next
)
:
peek
(
_next
)
{}
~
AutoGunzipReader
();
...
...
src/fs/io/BufferedOutputStream.hxx
View file @
8aae9766
...
...
@@ -44,7 +44,7 @@ class BufferedOutputStream {
DynamicFifoBuffer
<
char
>
buffer
;
public
:
BufferedOutputStream
(
OutputStream
&
_os
)
explicit
BufferedOutputStream
(
OutputStream
&
_os
)
:
os
(
_os
),
buffer
(
32768
)
{}
void
Write
(
const
void
*
data
,
size_t
size
);
...
...
src/fs/io/BufferedReader.hxx
View file @
8aae9766
...
...
@@ -40,7 +40,7 @@ class BufferedReader {
unsigned
line_number
=
0
;
public
:
BufferedReader
(
Reader
&
_reader
)
explicit
BufferedReader
(
Reader
&
_reader
)
:
reader
(
_reader
),
buffer
(
4096
)
{}
/**
...
...
src/fs/io/FileOutputStream.hxx
View file @
8aae9766
...
...
@@ -88,7 +88,7 @@ private:
Mode
mode
;
public
:
FileOutputStream
(
Path
_path
,
Mode
_mode
=
Mode
::
CREATE
);
explicit
FileOutputStream
(
Path
_path
,
Mode
_mode
=
Mode
::
CREATE
);
~
FileOutputStream
()
{
if
(
IsDefined
())
...
...
src/fs/io/FileReader.hxx
View file @
8aae9766
...
...
@@ -46,7 +46,7 @@ class FileReader final : public Reader {
#endif
public
:
FileReader
(
Path
_path
);
explicit
FileReader
(
Path
_path
);
#ifdef WIN32
FileReader
(
FileReader
&&
other
)
...
...
src/fs/io/GunzipReader.hxx
View file @
8aae9766
...
...
@@ -43,7 +43,7 @@ public:
/**
* Construct the filter.
*/
GunzipReader
(
Reader
&
_next
);
explicit
GunzipReader
(
Reader
&
_next
);
~
GunzipReader
()
{
inflateEnd
(
&
z
);
...
...
src/fs/io/GzipOutputStream.hxx
View file @
8aae9766
...
...
@@ -41,7 +41,7 @@ public:
/**
* Construct the filter.
*/
GzipOutputStream
(
OutputStream
&
_next
);
explicit
GzipOutputStream
(
OutputStream
&
_next
);
~
GzipOutputStream
();
/**
...
...
src/fs/io/PeekReader.hxx
View file @
8aae9766
...
...
@@ -39,7 +39,7 @@ class PeekReader final : public Reader {
uint8_t
buffer
[
64
];
public
:
PeekReader
(
Reader
&
_next
)
explicit
PeekReader
(
Reader
&
_next
)
:
next
(
_next
)
{}
const
void
*
Peek
(
size_t
size
);
...
...
src/fs/io/StdioOutputStream.hxx
View file @
8aae9766
...
...
@@ -30,7 +30,7 @@ class StdioOutputStream final : public OutputStream {
FILE
*
const
file
;
public
:
StdioOutputStream
(
FILE
*
_file
)
:
file
(
_file
)
{}
explicit
StdioOutputStream
(
FILE
*
_file
)
:
file
(
_file
)
{}
/* virtual methods from class OutputStream */
void
Write
(
const
void
*
data
,
size_t
size
)
override
{
...
...
src/fs/io/TextFile.hxx
View file @
8aae9766
...
...
@@ -38,7 +38,7 @@ class TextFile {
BufferedReader
*
const
buffered_reader
;
public
:
TextFile
(
Path
path_fs
);
explicit
TextFile
(
Path
path_fs
);
TextFile
(
const
TextFile
&
other
)
=
delete
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment