File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ CLFSAppender::CLFSAppender (helpers::Properties const & props)
93
93
: Appender (props)
94
94
, data (new Data)
95
95
{
96
- tstring logname = props.getProperty (LOG4CPLUS_TEXT (" LogName" ));
96
+ const tstring& logname = props.getProperty (LOG4CPLUS_TEXT (" LogName" ));
97
97
98
98
unsigned long logsize = CLFS_APPENDER_INITIAL_LOG_SIZE;
99
99
props.getULong (logsize, LOG4CPLUS_TEXT (" LogSize" ));
Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ FilterResult MDCMatchFilter::decide(const InternalLoggingEvent& event) const
341
341
if (neutralOnEmpty && (mdcKeyToMatch.empty () || mdcValueToMatch.empty ()))
342
342
return NEUTRAL;
343
343
344
- const tstring mdcStr = event.getMDC (mdcKeyToMatch);
344
+ const tstring& mdcStr = event.getMDC (mdcKeyToMatch);
345
345
346
346
if (neutralOnEmpty && mdcStr.empty ())
347
347
return NEUTRAL;
You can’t perform that action at this time.
0 commit comments