Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
bd5494fa
Commit
bd5494fa
authored
May 25, 2012
by
Mukund Sivaraman
Browse files
[1704] Initialize sync_ in the initialization list
parent
8b555fcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/log/logger_impl.cc
View file @
bd5494fa
...
...
@@ -49,10 +49,11 @@ namespace log {
// one compiler requires that all member variables be constructed before the
// constructor is run, but log4cplus::Logger (the type of logger_) has no
// default constructor.
LoggerImpl
::
LoggerImpl
(
const
string
&
name
)
:
name_
(
expandLoggerName
(
name
)),
logger_
(
log4cplus
::
Logger
::
getInstance
(
name_
))
LoggerImpl
::
LoggerImpl
(
const
string
&
name
)
:
name_
(
expandLoggerName
(
name
)),
logger_
(
log4cplus
::
Logger
::
getInstance
(
name_
)),
sync_
(
new
InterprocessSyncFile
(
"logger"
))
{
sync_
=
new
InterprocessSyncFile
(
"logger"
);
}
// Destructor. (Here because of virtual declaration.)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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