summaryrefslogtreecommitdiff
path: root/unotest
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-28 14:22:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-28 14:22:47 +0200
commit36638dac7d9a9f14ebaedb6a76371beef9d14bde (patch)
tree6149274ea85eda67022dcd153ae232240b4c89a2 /unotest
parent50413b07d2ab1fb0dd706565bfcac0a5946f6cf2 (diff)
loplugin:cppunitassertequals: unotest
Change-Id: If2ebd9ffcab036ecb7b07038346c8a8f8e059cbe
Diffstat (limited to 'unotest')
-rw-r--r--unotest/source/cpp/directories.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/unotest/source/cpp/directories.cxx b/unotest/source/cpp/directories.cxx
index 71c1f32fa193..d559dffc2e90 100644
--- a/unotest/source/cpp/directories.cxx
+++ b/unotest/source/cpp/directories.cxx
@@ -29,9 +29,11 @@ OUString getFileURLFromSystemPath(OUString const & path) {
test::Directories::Directories() {
const char* pSrcRoot = getenv( "SRC_ROOT" );
- CPPUNIT_ASSERT_MESSAGE("SRC_ROOT env variable not set", pSrcRoot != nullptr && pSrcRoot[0] != 0);
+ CPPUNIT_ASSERT_MESSAGE("SRC_ROOT env variable not set", pSrcRoot != nullptr);
+ CPPUNIT_ASSERT_MESSAGE("SRC_ROOT env variable not set", pSrcRoot[0] != 0);
const char* pWorkdirRoot = getenv( "WORKDIR_FOR_BUILD" );
- CPPUNIT_ASSERT_MESSAGE("$WORKDIR_FOR_BUILD env variable not set", pWorkdirRoot != nullptr && pWorkdirRoot[0] != 0);
+ CPPUNIT_ASSERT_MESSAGE("$WORKDIR_FOR_BUILD env variable not set", pWorkdirRoot != nullptr);
+ CPPUNIT_ASSERT_MESSAGE("$WORKDIR_FOR_BUILD env variable not set", pWorkdirRoot[0] != 0);
m_aSrcRootPath = OUString::createFromAscii( pSrcRoot );
m_aSrcRootURL = getFileURLFromSystemPath(m_aSrcRootPath);