Skip to content

Commit f11ab9c

Browse files
committed
Fix new function signature
1 parent 1fadb11 commit f11ab9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/cpp/charsetencoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ void CharsetEncoder::encode(CharsetEncoderPtr& enc,
646646
}
647647
}
648648

649-
bool CharsetEncoder::isTriviallyCopyable(const LogString& src, CharsetEncoderPtr& enc)
649+
bool CharsetEncoder::isTriviallyCopyable(const LogString& src, const CharsetEncoderPtr& enc)
650650
{
651651
bool result = false;
652652
if (dynamic_cast<LocaleCharsetEncoder*>(enc.get()))

src/main/include/log4cxx/helpers/charsetencoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class LOG4CXX_EXPORT CharsetEncoder : public Object
120120
* Is the data of \c src unchanged by \c enc.
121121
*
122122
*/
123-
static bool isTriviallyCopyable(const LogString& src, CharsetEncoderPtr& enc);
123+
static bool isTriviallyCopyable(const LogString& src, const CharsetEncoderPtr& enc);
124124

125125

126126
private:

0 commit comments

Comments
 (0)