Kaydet (Commit) 4e9d7341 authored tarafından Matteo Casalin's avatar Matteo Casalin Kaydeden (comit) Michael Stahl

String to OUString

Change-Id: Ibbd6cfd969dd5ba3f839f48ff557d6c850ea3ab2
Reviewed-on: https://gerrit.libreoffice.org/5557Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst bb145132
......@@ -20,6 +20,7 @@
#define SW_DOCSTYLE_HXX
#include <rtl/ref.hxx>
#include <rtl/ustring.hxx>
#include <svl/style.hxx>
#include <svl/itemset.hxx>
......@@ -38,11 +39,11 @@ class SwNumRule;
/*--------------------------------------------------------------------
Local helper class.
--------------------------------------------------------------------*/
class SwPoolFmtList : public std::vector<String>
class SwPoolFmtList : public std::vector<OUString>
{
public:
SwPoolFmtList() {}
void Append( char cChar, const String& rStr );
void Append( char cChar, const OUString& rStr );
void Erase();
};
......
......@@ -329,11 +329,10 @@ bool FindPhyStyle( SwDoc& rDoc, const String& rName, SfxStyleFamily eFam )
}
// Add Strings to the list of templates
void SwPoolFmtList::Append( char cChar, const String& rStr )
void SwPoolFmtList::Append( char cChar, const OUString& rStr )
{
String aStr = OUString(cChar);
aStr += rStr;
for(std::vector<String>::const_iterator i = begin(); i != end(); ++i)
const OUString aStr = OUString(cChar) + rStr;
for(std::vector<OUString>::const_iterator i = begin(); i != end(); ++i)
if(*i == aStr)
return;
push_back(aStr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment