summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/codemaker/global.cxx13
1 files changed, 3 insertions, 10 deletions
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx
index aa496bde76b1..17ec892ff7b5 100644
--- a/codemaker/source/codemaker/global.cxx
+++ b/codemaker/source/codemaker/global.cxx
@@ -63,8 +63,7 @@ OString getTempDir(const OString& sFileName)
OString createFileNameFromType( const OString& destination,
const OString& typeName,
const OString& postfix,
- bool bLowerCase,
- const OString& prefix )
+ bool bLowerCase )
{
OString type(typeName.replace('.', '/'));
@@ -82,7 +81,7 @@ OString createFileNameFromType( const OString& destination,
bWithPoint = true;
}
- length += prefix.getLength() + type.getLength() + postfix.getLength();
+ length += type.getLength() + postfix.getLength();
bool bWithSeparator = false;
if (!(destination.endsWith("\\") || destination.endsWith("/"))
@@ -102,13 +101,7 @@ OString createFileNameFromType( const OString& destination,
if (bWithSeparator)
fileNameBuf.append("/", 1);
- OString tmpStr(type);
- if (!prefix.isEmpty())
- {
- tmpStr = type.replaceAt(type.lastIndexOf('/')+1, 0, prefix);
- }
-
- fileNameBuf.append(tmpStr.getStr(), tmpStr.getLength());
+ fileNameBuf.append(type.getStr(), type.getLength());
fileNameBuf.append(postfix.getStr(), postfix.getLength());
OString fileName(fileNameBuf.makeStringAndClear());