summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-03 13:04:59 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-03 11:39:56 +0000
commit5adde1bf69828da955f5f8ae8d36a4bd52eee055 (patch)
tree19b20375684dd8bb328ceb59a7b035ad7d352bd9 /codemaker
parent83dccbadc2c6caa804039199915d4a8c1f3f2d5a (diff)
loplugin:unuseddefaultparams various
Change-Id: Ibf8489c957b307156689de4c7cb8440ddd4e4546 Reviewed-on: https://gerrit.libreoffice.org/22852 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
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());