From 56f4d7dc9d0a10dbe0bc2d55fb5fa931453c91db Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Tue, 12 Feb 2013 21:24:03 +0100 Subject: Some cppcheck cleaning Change-Id: I8609949377181f8edb30ac07b2791cfcd079fc7d --- sc/qa/unit/helper/qahelper.hxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sc/qa') diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx index 86275f7d4077..b09a61e2991e 100644 --- a/sc/qa/unit/helper/qahelper.hxx +++ b/sc/qa/unit/helper/qahelper.hxx @@ -103,10 +103,9 @@ void loadFile(const OUString& aFileName, std::string& aContent) OString aOFileName = OUStringToOString(aFileName, RTL_TEXTENCODING_UTF8); #ifdef ANDROID - const char *contents; size_t size; if (strncmp(aOFileName.getStr(), "/assets/", sizeof("/assets/")-1) == 0) { - contents = (const char *) lo_apkentry(aOFileName.getStr(), &size); + const char *contents = (const char *) lo_apkentry(aOFileName.getStr(), &size); if (contents != 0) { aContent = std::string(contents, size); return; @@ -243,7 +242,7 @@ public: for ( unsigned int index=0; index