Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 07fa17c

Browse filesBrowse files
committed
get_dc(): Respect LOG4CPLUS_REQUIRE_EXPLICIT_INITIALIZATION
1 parent ab2a616 commit 07fa17c
Copy full SHA for 07fa17c

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎src/global-init.cxx

Copy file name to clipboardExpand all lines: src/global-init.cxx
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,13 @@ alloc_dc ()
262262

263263
static
264264
DefaultContext *
265-
get_dc (bool alloc = true)
265+
get_dc (
266+
#ifdef LOG4CPLUS_REQUIRE_EXPLICIT_INITIALIZATION
267+
bool alloc = false
268+
#else
269+
bool alloc = true
270+
#endif
271+
)
266272
{
267273
if (LOG4CPLUS_UNLIKELY(!default_context))
268274
{

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.