diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx index b79ef762774e..4c7bd963b6f4 100644 --- a/idlc/source/idlccompile.cxx +++ b/idlc/source/idlccompile.cxx @@ -2,9 +2,9 @@ * * $RCSfile: idlccompile.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: rt $ $Date: 2001-08-20 10:44:50 $ + * last change: $Author: dbo $ $Date: 2001-08-23 07:21:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -182,8 +182,12 @@ OString makeTempName(const OString& prefix, const OString& postfix) #else (void) mktemp(tmpFilePattern); #endif - if ( postfix.getLength() ) - strcat(tmpFilePattern, postfix.getStr()); + /** DBO (08/22/2002): + since mkstemp() creates the file, it won't be removed anywhere later appending a postfix. + Is the postfix necessarry? + */ +// if ( postfix.getLength() ) +// strcat(tmpFilePattern, postfix.getStr()); #endif #ifdef __OS2__ diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx index 40af02bfb464..664fe987acca 100644 --- a/idlc/source/idlcproduce.cxx +++ b/idlc/source/idlcproduce.cxx @@ -2,9 +2,9 @@ * * $RCSfile: idlcproduce.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: jsc $ $Date: 2001-08-17 13:03:26 $ + * last change: $Author: dbo $ $Date: 2001-08-23 07:21:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -216,9 +216,9 @@ sal_Int32 SAL_CALL produceFile(const OString& fileName) OString strippedFileName(fileName.copy(fileName.lastIndexOf(SEPARATOR) + 1)); OString tempName(strippedFileName.copy(0, strippedFileName.indexOf('.'))); tempName += "_"; + tempName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "_idlc_"); OString regTmpName( makeTempName(tempName, "._idlc_")); regFileName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "urd"); - regTmpName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "_idlc_"); RegistryLoader regLoader; RegistryTypeWriterLoader writerLoader;