diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 20:55:47 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 20:55:47 +0000 |
commit | 8092bd01e328c056ea738cff994fb5c08eeaa5d3 (patch) | |
tree | 843652c3cdce0c781e9f6122d4277ca2f9997eea /cpputools | |
parent | 8f30912a09dbe6599f1f35ee07ddc96f24a1173b (diff) |
INTEGRATION: CWS warnings01 (1.15.12); FILE MERGED
2005/09/23 02:55:27 sb 1.15.12.2: RESYNC: (1.15-1.16); FILE MERGED
2005/09/07 11:52:49 sb 1.15.12.1: #i53898# Made code warning-free.
Diffstat (limited to 'cpputools')
-rw-r--r-- | cpputools/source/registercomponent/registercomponent.cxx | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/cpputools/source/registercomponent/registercomponent.cxx b/cpputools/source/registercomponent/registercomponent.cxx index e739d021b58e..c6f1ceea200e 100644 --- a/cpputools/source/registercomponent/registercomponent.cxx +++ b/cpputools/source/registercomponent/registercomponent.cxx @@ -4,9 +4,9 @@ * * $RCSfile: registercomponent.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: rt $ $Date: 2005-09-08 09:37:59 $ + * last change: $Author: hr $ $Date: 2006-06-19 21:55:47 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -104,11 +104,21 @@ OUString convertToFileUrl(const OUString& fileName) if ( fileName.indexOf('.') == 0 || fileName.indexOf(SEPARATOR) < 0 ) { OUString uWorkingDir; - OSL_VERIFY( osl_getProcessWorkingDir(&uWorkingDir.pData) == osl_Process_E_None ); - OSL_VERIFY( FileBase::getAbsoluteFileURL(uWorkingDir, fileName, uUrlFileName) == FileBase::E_None ); + if (osl_getProcessWorkingDir(&uWorkingDir.pData) != osl_Process_E_None) { + OSL_ASSERT(false); + } + if (FileBase::getAbsoluteFileURL(uWorkingDir, fileName, uUrlFileName) + != FileBase::E_None) + { + OSL_ASSERT(false); + } } else { - OSL_VERIFY( FileBase::getFileURLFromSystemPath(fileName, uUrlFileName) == FileBase::E_None ); + if (FileBase::getFileURLFromSystemPath(fileName, uUrlFileName) + != FileBase::E_None) + { + OSL_ASSERT(false); + } } return uUrlFileName; @@ -441,9 +451,9 @@ sal_Bool parseOptions(int ac, char* av[], Options& rOptions, sal_Bool bCmdFile) parseOptions(rargc, rargv, rOptions, bCmdFile); - for (long i=1; i < rargc; i++) + for (long j=1; j < rargc; j++) { - rtl_freeMemory(rargv[i]); + rtl_freeMemory(rargv[j]); } rtl_freeMemory( buffer ); rtl_freeMemory( rargv ); |