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
288b98cc
Commit
288b98cc
authored
Jan 04, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/io/GunzipReader: use C++11 initializer
parent
bde50b1b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
11 deletions
+10
-11
AutoGunzipReader.hxx
src/fs/io/AutoGunzipReader.hxx
+3
-3
BufferedReader.hxx
src/fs/io/BufferedReader.hxx
+3
-4
GunzipReader.cxx
src/fs/io/GunzipReader.cxx
+1
-1
GunzipReader.hxx
src/fs/io/GunzipReader.hxx
+1
-1
PeekReader.hxx
src/fs/io/PeekReader.hxx
+2
-2
No files found.
src/fs/io/AutoGunzipReader.hxx
View file @
288b98cc
...
...
@@ -31,13 +31,13 @@ class GunzipReader;
* #GunzipReader.
*/
class
AutoGunzipReader
final
:
public
Reader
{
Reader
*
next
;
Reader
*
next
=
nullptr
;
PeekReader
peek
;
GunzipReader
*
gunzip
;
GunzipReader
*
gunzip
=
nullptr
;
public
:
AutoGunzipReader
(
Reader
&
_next
)
:
next
(
nullptr
),
peek
(
_next
),
gunzip
(
nullptr
)
{}
:
peek
(
_next
)
{}
~
AutoGunzipReader
();
/* virtual methods from class Reader */
...
...
src/fs/io/BufferedReader.hxx
View file @
288b98cc
...
...
@@ -35,14 +35,13 @@ class BufferedReader {
DynamicFifoBuffer
<
char
>
buffer
;
bool
eof
;
bool
eof
=
false
;
unsigned
line_number
;
unsigned
line_number
=
0
;
public
:
BufferedReader
(
Reader
&
_reader
)
:
reader
(
_reader
),
buffer
(
4096
),
eof
(
false
),
line_number
(
0
)
{}
:
reader
(
_reader
),
buffer
(
4096
)
{}
/**
* Reset the internal state. Should be called after rewinding
...
...
src/fs/io/GunzipReader.cxx
View file @
288b98cc
...
...
@@ -22,7 +22,7 @@
#include "lib/zlib/Error.hxx"
GunzipReader
::
GunzipReader
(
Reader
&
_next
)
:
next
(
_next
)
,
eof
(
false
)
:
next
(
_next
)
{
z
.
next_in
=
nullptr
;
z
.
avail_in
=
0
;
...
...
src/fs/io/GunzipReader.hxx
View file @
288b98cc
...
...
@@ -33,7 +33,7 @@
class
GunzipReader
final
:
public
Reader
{
Reader
&
next
;
bool
eof
;
bool
eof
=
false
;
z_stream
z
;
...
...
src/fs/io/PeekReader.hxx
View file @
288b98cc
...
...
@@ -34,13 +34,13 @@
class
PeekReader
final
:
public
Reader
{
Reader
&
next
;
size_t
buffer_size
,
buffer_position
;
size_t
buffer_size
=
0
,
buffer_position
=
0
;
uint8_t
buffer
[
64
];
public
:
PeekReader
(
Reader
&
_next
)
:
next
(
_next
)
,
buffer_size
(
0
),
buffer_position
(
0
)
{}
:
next
(
_next
)
{}
const
void
*
Peek
(
size_t
size
);
...
...
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