summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortschoening <tschoening@13f79535-47bb-0310-9956-ffa450edef68>2016-03-17 16:14:25 +0000
committertschoening <tschoening@13f79535-47bb-0310-9956-ffa450edef68>2016-03-17 16:14:25 +0000
commit79bdfd09e8af980ff39f8264b9381d53e713dbd0 (patch)
tree73f78c6a3433918ac9f40cbbc305181b3a7a5899
parent3374e1ce88162141980363ce91348999bec33fdb (diff)
downloadlog4cxx-79bdfd09e8af980ff39f8264b9381d53e713dbd0.tar.gz
LOGCXX-400: Changes of comment 2 applied.
git-svn-id: http://svn.apache.org/repos/asf/incubator/log4cxx/trunk@1735450 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/test/cpp/xml/domtestcase.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/cpp/xml/domtestcase.cpp b/src/test/cpp/xml/domtestcase.cpp
index a500628..5860c70 100644
--- a/src/test/cpp/xml/domtestcase.cpp
+++ b/src/test/cpp/xml/domtestcase.cpp
@@ -53,7 +53,7 @@ LOGUNIT_CLASS(DOMTestCase)
LOGUNIT_TEST(test2);
#endif
LOGUNIT_TEST(test3);
- LOGUNIT_TEST(test4);
+ LOGUNIT_TEST(test4);
LOGUNIT_TEST_SUITE_END();
LoggerPtr root;
@@ -181,18 +181,18 @@ public:
LOG4CXX_FATAL(root, "Message " << i);
}
-
+
/**
* Creates a output file that ends with a superscript 3.
* Output file is checked by build.xml after completion.
- */
+ */
void test3() {
DOMConfigurator::configure(LOG4CXX_TEST_STR("input/xml/DOMTestCase3.xml"));
LOG4CXX_INFO(logger, "File name is expected to end with a superscript 3");
#if LOG4CXX_LOGCHAR_IS_UTF8
- const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, 0xC2, 0xB3, 0 };
+ const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, static_cast<logchar>(0xC2), static_cast<logchar>(0xB3), 0 };
#else
- const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, 0xB3, 0 };
+ const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, static_cast<logchar>(0xB3), 0 };
#endif
File file;
file.setPath(fname);
@@ -204,14 +204,14 @@ public:
/**
* Creates a output file that ends with a ideographic 4.
* Output file is checked by build.xml after completion.
- */
+ */
void test4() {
DOMConfigurator::configure(LOG4CXX_TEST_STR("input/xml/DOMTestCase4.xml"));
LOG4CXX_INFO(logger, "File name is expected to end with an ideographic 4");
#if LOG4CXX_LOGCHAR_IS_UTF8
- const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, 0xE3, 0x86, 0x95, 0 };
+ const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, static_cast<logchar>(0xE3), static_cast<logchar>(0x86), static_cast<logchar>(0x95), 0 };
#else
- const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, 0x3195, 0 };
+ const logchar fname[] = { 0x6F, 0x75, 0x74, 0x70, 0x75, 0x74, 0x2F, 0x64, 0x6F, 0x6D, static_cast<logchar>(0x3195), 0 };
#endif
File file;
file.setPath(fname);
@@ -219,7 +219,7 @@ public:
bool exists = file.exists(p);
LOGUNIT_ASSERT(exists);
}
-
+
};
LOGUNIT_TEST_SUITE_REGISTRATION(DOMTestCase);