[Libreoffice-commits] core.git: sw/source
Alexandre Vicenzi
vicenzi.alexandre at gmail.com
Sat Mar 15 10:35:32 PDT 2014
sw/source/core/doc/docfld.cxx | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 5a6c33bdfdf7de03cd0f18d3bba7f4b5749eda70
Author: Alexandre Vicenzi <vicenzi.alexandre at gmail.com>
Date: Sat Mar 15 14:16:16 2014 -0300
fdo#57950: Replace some chained appends in sw
Change-Id: Ie49834e8178c75ee7d69c556f7b7005b76e57498
Reviewed-on: https://gerrit.libreoffice.org/8607
Reviewed-by: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
Tested-by: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 585de37..5697e6a 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -1748,11 +1748,7 @@ void SwDoc::GetAllDBNames( std::vector<OUString>& rAllDBNames )
for(sal_uInt16 i = 0; i < rArr.size(); i++)
{
const SwDSParam* pParam = &rArr[i];
- OUStringBuffer sStr(pParam->sDataSource.getLength() + pParam->sCommand.getLength() + 2);
- sStr.append(pParam->sDataSource );
- sStr.append(DB_DELIM);
- sStr.append(pParam->sCommand);
- rAllDBNames.push_back(sStr.makeStringAndClear());
+ rAllDBNames.push_back(pParam->sDataSource + OUString(DB_DELIM) + pParam->sCommand);
}
}
More information about the Libreoffice-commits
mailing list