diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-08-18 01:53:27 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-08-18 01:53:27 +0200 |
commit | bc42d992439de77b0e60a8435b2a134d886f0f76 (patch) | |
tree | ce959150c9841e08d78889b371706cae5584c021 /sw/inc/rubylist.hxx | |
parent | String to OUString, mark as const (diff) | |
download | core-bc42d992439de77b0e60a8435b2a134d886f0f76.tar.gz core-bc42d992439de77b0e60a8435b2a134d886f0f76.zip |
String to OUString, optimize order of checks
Change-Id: I54deff88232d54f268a03dd61646b0ad59b3d8d1
Diffstat (limited to 'sw/inc/rubylist.hxx')
-rw-r--r-- | sw/inc/rubylist.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/inc/rubylist.hxx b/sw/inc/rubylist.hxx index c79df00c6214..ec834f9f4a70 100644 --- a/sw/inc/rubylist.hxx +++ b/sw/inc/rubylist.hxx @@ -16,8 +16,8 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef _RUBYLIST_HXX -#define _RUBYLIST_HXX +#ifndef RUBYLIST_HXX +#define RUBYLIST_HXX #include <swtypes.hxx> #include <fmtruby.hxx> @@ -25,18 +25,18 @@ class SwRubyListEntry { - String sText; - SwFmtRuby aRubyAttr; + OUString m_sText; + SwFmtRuby m_aRubyAttr; public: - SwRubyListEntry() : aRubyAttr( aEmptyStr ) {} + SwRubyListEntry() : m_aRubyAttr( OUString() ) {} ~SwRubyListEntry(); - const String& GetText() const { return sText; } - void SetText( const String& rStr ) { sText = rStr; } + OUString GetText() const { return m_sText; } + void SetText( const OUString& rStr ) { m_sText = rStr; } - const SwFmtRuby& GetRubyAttr() const { return aRubyAttr; } - SwFmtRuby& GetRubyAttr() { return aRubyAttr; } - void SetRubyAttr( const SwFmtRuby& rAttr ) { aRubyAttr = rAttr; } + const SwFmtRuby& GetRubyAttr() const { return m_aRubyAttr; } + SwFmtRuby& GetRubyAttr() { return m_aRubyAttr; } + void SetRubyAttr( const SwFmtRuby& rAttr ) { m_aRubyAttr = rAttr; } }; class SwRubyList : public boost::ptr_vector<SwRubyListEntry> {}; |