summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-01-31 14:28:13 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-01-31 14:28:13 +0000
commit81dc4b34af63d6be0c939aeacba38e7dcd8fa48e (patch)
tree1c23943f5bc4c4030a731a75605f2feb9d784dcb /codemaker
parent4940ab9acd28e2128018e54fb1ff07847b710f25 (diff)
INTEGRATION: CWS sdksample (1.22.14); FILE MERGED
2004/12/16 12:41:13 jsc 1.22.14.1: #i39052# back search path for temp dir
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/codemaker/global.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx
index b462f169a..7cf1044ec 100644
--- a/codemaker/source/codemaker/global.cxx
+++ b/codemaker/source/codemaker/global.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: global.cxx,v $
*
- * $Revision: 1.22 $
+ * $Revision: 1.23 $
*
- * last change: $Author: obo $ $Date: 2004-06-04 03:10:40 $
+ * last change: $Author: rt $ $Date: 2005-01-31 15:28:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -94,10 +94,10 @@ OString getTempDir(const OString& sFileName)
{
sal_Int32 index = 0;
#ifdef SAL_UNX
- if ((index=sFileName.indexOf('/')) > 0)
+ if ((index=sFileName.lastIndexOf('/')) > 0)
return sFileName.copy(0, index);
#else
- if ((index=sFileName.indexOf('\\')) > 0)
+ if ((index=sFileName.lastIndexOf('\\')) > 0)
return sFileName.copy(0, index);
#endif
return ".";