diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-08-19 02:13:48 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-08-21 09:44:10 +0000 |
commit | 4e9d7341d421440453bfbc306d65a2bd7bad0384 (patch) | |
tree | e462cb345fed956fe70ad5ff29ee9934e32446e6 /sw/source | |
parent | bb145132b87be8690d4b3b23f15bba11a2a0d94c (diff) |
String to OUString
Change-Id: Ibbd6cfd969dd5ba3f839f48ff557d6c850ea3ab2
Reviewed-on: https://gerrit.libreoffice.org/5557
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/ui/app/docstyle.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/ui/app/docstyle.cxx b/sw/source/ui/app/docstyle.cxx index 916550bfef67..e8eb77127d0c 100644 --- a/sw/source/ui/app/docstyle.cxx +++ b/sw/source/ui/app/docstyle.cxx @@ -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); |