Skip to content

Commit 3e33301

Browse files
committed
Fix compilation error
1 parent 620e671 commit 3e33301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/cpp/xml/xmllayouttest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ LOGUNIT_CLASS(XMLLayoutTest)
465465
{
466466
std::string problemName = "com.example.bar<>&\"'";
467467
LogString problemNameLS = LOG4CXX_STR("com.example.bar<>&\"'");
468-
LevelPtr level = LevelPtr(new XLevel(6000, problemNameLS, 7));
468+
auto level = std::make_shared<XLevel>(6000, problemNameLS, 7);
469469
NDC::push(problemName);
470470
auto event = std::make_shared<LoggingEvent>(problemNameLS, level, problemNameLS, LOG4CXX_LOCATION);
471471
HTMLLayout layout;
@@ -478,7 +478,7 @@ LOGUNIT_CLASS(XMLLayoutTest)
478478
char backing[3000];
479479
ByteBuffer buf(backing, sizeof(backing));
480480
CharsetEncoderPtr encoder(CharsetEncoder::getUTF8Encoder());
481-
auto iter = html.begin();
481+
LogString::const_iterator iter{ html.begin() };
482482
encoder->encode(html, iter, buf);
483483
LOGUNIT_ASSERT(iter == html.end());
484484
buf.flip();

0 commit comments

Comments
 (0)