summaryrefslogtreecommitdiff
path: root/dbaccess/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-10 09:47:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-10 10:48:04 +0000
commit95af5f51fa6c7a0129360bb9df687fb8660fd3c9 (patch)
tree4ba9e086012cf97113250f74429c407cb36725db /dbaccess/qa
parent1bb614066738f2672da8923c40b5694eed383e86 (diff)
V668 no sense in testing the result of new against null
Change-Id: I85993df91bd14966f9175c356966fbd8eb1a927d
Diffstat (limited to 'dbaccess/qa')
-rw-r--r--dbaccess/qa/unit/embeddeddb_performancetest.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/dbaccess/qa/unit/embeddeddb_performancetest.cxx b/dbaccess/qa/unit/embeddeddb_performancetest.cxx
index 1eebc2206f22..a639d72e9b2c 100644
--- a/dbaccess/qa/unit/embeddeddb_performancetest.cxx
+++ b/dbaccess/qa/unit/embeddeddb_performancetest.cxx
@@ -129,16 +129,7 @@ SvFileStream* EmbeddedDBPerformanceTest::getWordListStream()
{
OUString wlPath;
createFileURL("wordlist", wlPath);
-
- SvFileStream *pFile(new SvFileStream(wlPath, StreamMode::READ));
-
- if (!pFile)
- {
- fprintf(stderr, "Please ensure the wordlist is present\n");
- CPPUNIT_ASSERT(false);
- }
-
- return pFile;
+ return new SvFileStream(wlPath, StreamMode::READ);
}
void EmbeddedDBPerformanceTest::printTimes(