Skip to content

Commit 3e7d0b5

Browse files
committed
Silence abi_check
1 parent 03de208 commit 3e7d0b5

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/main/cpp/outputstreamwriter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct OutputStreamWriter::OutputStreamWriterPrivate
4141
CharsetEncoderPtr enc;
4242
};
4343

44-
OutputStreamWriter::OutputStreamWriter(const OutputStreamPtr& out)
44+
OutputStreamWriter::OutputStreamWriter(LOG4CXX_16_CONST OutputStreamPtr& out)
4545
: m_priv(std::make_unique<OutputStreamWriterPrivate>(out))
4646
{
4747
if (!out)
@@ -51,8 +51,8 @@ OutputStreamWriter::OutputStreamWriter(const OutputStreamPtr& out)
5151
}
5252

5353
OutputStreamWriter::OutputStreamWriter
54-
( const OutputStreamPtr& out
55-
, const CharsetEncoderPtr& enc
54+
( LOG4CXX_16_CONST OutputStreamPtr& out
55+
, LOG4CXX_16_CONST CharsetEncoderPtr& enc
5656
)
5757
: m_priv(std::make_unique<OutputStreamWriterPrivate>(out, enc))
5858
{

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
#include <log4cxx/helpers/outputstream.h>
2323
#include <log4cxx/helpers/charsetencoder.h>
2424

25+
#if 15 < LOG4CXX_ABI_VERSION
26+
#define LOG4CXX_16_CONST const
27+
#else
28+
#define LOG4CXX_16_CONST
29+
#endif
30+
2531
namespace LOG4CXX_NS
2632
{
2733

@@ -43,8 +49,8 @@ class LOG4CXX_EXPORT OutputStreamWriter : public Writer
4349
LOG4CXX_CAST_ENTRY_CHAIN(Writer)
4450
END_LOG4CXX_CAST_MAP()
4551

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);
4854
~OutputStreamWriter();
4955

5056
void close(Pool& p) override;

src/main/include/log4cxx/writerappender.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222
#include <log4cxx/helpers/outputstreamwriter.h>
2323
#include <atomic>
2424

25-
#if 15 < LOG4CXX_ABI_VERSION
26-
#define LOG4CXX_16_CONST const
27-
#else
28-
#define LOG4CXX_16_CONST
29-
#endif
30-
3125
namespace LOG4CXX_NS
3226
{
3327

0 commit comments

Comments
 (0)