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
4c1d29c8
Commit
4c1d29c8
authored
Nov 10, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/nfs/FileReader: use C++11 initializers
parent
0db7a0c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
FileReader.cxx
src/lib/nfs/FileReader.cxx
+1
-1
FileReader.hxx
src/lib/nfs/FileReader.hxx
+1
-1
NfsStorage.cxx
src/storage/plugins/NfsStorage.cxx
+2
-3
No files found.
src/lib/nfs/FileReader.cxx
View file @
4c1d29c8
...
...
@@ -33,7 +33,7 @@
#include <sys/stat.h>
NfsFileReader
::
NfsFileReader
()
:
DeferredMonitor
(
nfs_get_event_loop
())
,
state
(
State
::
INITIAL
)
:
DeferredMonitor
(
nfs_get_event_loop
())
{
}
...
...
src/lib/nfs/FileReader.hxx
View file @
4c1d29c8
...
...
@@ -54,7 +54,7 @@ class NfsFileReader : NfsLease, NfsCallback, DeferredMonitor {
IDLE
,
};
State
state
;
State
state
=
State
::
INITIAL
;
std
::
string
server
,
export_name
;
const
char
*
path
;
...
...
src/storage/plugins/NfsStorage.cxx
View file @
4c1d29c8
...
...
@@ -65,7 +65,7 @@ class NfsStorage final
Mutex
mutex
;
Cond
cond
;
State
state
;
State
state
=
State
::
INITIAL
;
std
::
exception_ptr
last_exception
;
public
:
...
...
@@ -75,8 +75,7 @@ public:
base
(
_base
),
server
(
std
::
move
(
_server
)),
export_name
(
std
::
move
(
_export_name
)),
reconnect_timer
(
_loop
,
BIND_THIS_METHOD
(
OnReconnectTimer
)),
state
(
State
::
INITIAL
)
{
reconnect_timer
(
_loop
,
BIND_THIS_METHOD
(
OnReconnectTimer
))
{
nfs_init
(
_loop
);
}
...
...
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