diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 14:46:22 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 14:46:22 +0000 |
commit | 2757200302d89c1cd87fcafa511db8f2b3e0a2e3 (patch) | |
tree | 770d366096a08172b166fb3b271b4bec05adcd47 /idlc/source/idlccompile.cxx | |
parent | f58614d1098c9751d607a3239145d4809463fac8 (diff) |
INTEGRATION: CWS sdksample (1.15.14); FILE MERGED
2004/11/03 12:28:25 jsc 1.15.14.1: #i36556# integrate partly workaround for the described problem in the bug
Diffstat (limited to 'idlc/source/idlccompile.cxx')
-rw-r--r-- | idlc/source/idlccompile.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx index 7d30f020d9ee..3f9a1181a12f 100644 --- a/idlc/source/idlccompile.cxx +++ b/idlc/source/idlccompile.cxx @@ -2,9 +2,9 @@ * * $RCSfile: idlccompile.cxx,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: rt $ $Date: 2004-06-17 12:48:48 $ + * last change: $Author: rt $ $Date: 2005-01-31 15:46:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -337,11 +337,12 @@ sal_Int32 compileFile(const OString * pathname) OUString startDir; OSL_VERIFY(osl_getExecutableFile(&cpp.pData) == osl_Process_E_None); + sal_Int32 idx= cpp.lastIndexOf(OUString( RTL_CONSTASCII_USTRINGPARAM("idlc")) ); + cpp = cpp.copy(0, idx); + #if defined(SAL_W32) || defined(SAL_OS2) - cpp = cpp.copy(0, cpp.getLength() - 8); - cpp += OUString( RTL_CONSTASCII_USTRINGPARAM("idlcpp.exe")); + cpp += OUString( RTL_CONSTASCII_USTRINGPARAM("idlcpp.exe")); #else - cpp = cpp.copy(0, cpp.getLength() - 4); cpp += OUString( RTL_CONSTASCII_USTRINGPARAM("idlcpp")); #endif |