File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ struct OutputStreamWriter::OutputStreamWriterPrivate
41
41
CharsetEncoderPtr enc;
42
42
};
43
43
44
- OutputStreamWriter::OutputStreamWriter (const OutputStreamPtr& out)
44
+ OutputStreamWriter::OutputStreamWriter (LOG4CXX_16_CONST OutputStreamPtr& out)
45
45
: m_priv(std::make_unique<OutputStreamWriterPrivate>(out))
46
46
{
47
47
if (!out)
@@ -51,8 +51,8 @@ OutputStreamWriter::OutputStreamWriter(const OutputStreamPtr& out)
51
51
}
52
52
53
53
OutputStreamWriter::OutputStreamWriter
54
- ( const OutputStreamPtr& out
55
- , const CharsetEncoderPtr& enc
54
+ ( LOG4CXX_16_CONST OutputStreamPtr& out
55
+ , LOG4CXX_16_CONST CharsetEncoderPtr& enc
56
56
)
57
57
: m_priv(std::make_unique<OutputStreamWriterPrivate>(out, enc))
58
58
{
Original file line number Diff line number Diff line change 22
22
#include < log4cxx/helpers/outputstream.h>
23
23
#include < log4cxx/helpers/charsetencoder.h>
24
24
25
+ #if 15 < LOG4CXX_ABI_VERSION
26
+ #define LOG4CXX_16_CONST const
27
+ #else
28
+ #define LOG4CXX_16_CONST
29
+ #endif
30
+
25
31
namespace LOG4CXX_NS
26
32
{
27
33
@@ -43,8 +49,8 @@ class LOG4CXX_EXPORT OutputStreamWriter : public Writer
43
49
LOG4CXX_CAST_ENTRY_CHAIN (Writer)
44
50
END_LOG4CXX_CAST_MAP ()
45
51
46
- OutputStreamWriter (const OutputStreamPtr& out);
47
- OutputStreamWriter (const OutputStreamPtr& out, const CharsetEncoderPtr& enc);
52
+ OutputStreamWriter (LOG4CXX_16_CONST OutputStreamPtr& out);
53
+ OutputStreamWriter (LOG4CXX_16_CONST OutputStreamPtr& out, LOG4CXX_16_CONST CharsetEncoderPtr& enc);
48
54
~OutputStreamWriter ();
49
55
50
56
void close (Pool& p) override ;
Original file line number Diff line number Diff line change 22
22
#include < log4cxx/helpers/outputstreamwriter.h>
23
23
#include < atomic>
24
24
25
- #if 15 < LOG4CXX_ABI_VERSION
26
- #define LOG4CXX_16_CONST const
27
- #else
28
- #define LOG4CXX_16_CONST
29
- #endif
30
-
31
25
namespace LOG4CXX_NS
32
26
{
33
27
You can’t perform that action at this time.
0 commit comments