Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
5ff87ca9
Commit
5ff87ca9
authored
Dec 24, 2017
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxcomp/src/Log.h: use initializer lists instead of initializing member variables in-block.
parent
fcb41e32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
17 deletions
+4
-17
Log.h
nxcomp/src/Log.h
+4
-17
No files found.
nxcomp/src/Log.h
View file @
5ff87ca9
...
...
@@ -105,12 +105,8 @@ class NXLogStamp
}
NXLogStamp
(
const
char
*
file
,
const
char
*
function
,
int
line
,
NXLogLevel
level
)
NXLogStamp
(
const
char
*
file
,
const
char
*
function
,
int
line
,
NXLogLevel
level
)
:
file_
(
file
),
function_
(
function
),
line_
(
line
),
level_
(
level
)
{
file_
=
std
::
string
(
file
);
function_
=
std
::
string
(
function
);
line_
=
line
;
level_
=
level
;
gettimeofday
(
&
timestamp_
,
NULL
);
}
...
...
@@ -273,18 +269,9 @@ class NXLog
public
:
NXLog
()
{
stream_
=
&
std
::
cerr
;
level_
=
NXWARNING
;
synchronized_
=
true
;
thread_buffer_size_
=
1024
;
log_level_
=
false
;
log_time_
=
false
;
log_unix_time_
=
false
;
log_location_
=
false
;
log_thread_id_
=
false
;
NXLog
()
:
level_
(
NXWARNING
),
stream_
(
&
std
::
cerr
),
synchronized_
(
true
),
thread_buffer_size_
(
1024
),
log_level_
(
false
),
log_time_
(
false
),
log_unix_time_
(
false
),
log_location_
(
false
),
log_thread_id_
(
false
)
{
if
(
pthread_key_create
(
&
tls_key_
,
free_thread_data
)
!=
0
)
{
std
::
cerr
<<
"pthread_key_create failed"
<<
std
::
endl
;
...
...
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