From bc42d992439de77b0e60a8435b2a134d886f0f76 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sun, 18 Aug 2013 01:53:27 +0200 Subject: String to OUString, optimize order of checks Change-Id: I54deff88232d54f268a03dd61646b0ad59b3d8d1 --- sw/inc/rubylist.hxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'sw/inc/rubylist.hxx') 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 #include @@ -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 {}; -- cgit