Kaydet (Commit) d1f6857d authored tarafından Donizete Waterkemper's avatar Donizete Waterkemper Kaydeden (comit) Luboš Luňák

String to OUString.

Change-Id: I0a6bba13d71b45a7f9161030073d4d3399ea6ad5
https://gerrit.libreoffice.org/#/c/4012/
üst 628ed6bc
...@@ -44,17 +44,17 @@ enum LocaleMatch ...@@ -44,17 +44,17 @@ enum LocaleMatch
static LocaleMatch lclLocaleCompare(const Locale& rLocale1, const Locale& rLocale2) static LocaleMatch lclLocaleCompare(const Locale& rLocale1, const Locale& rLocale2)
{ {
LocaleMatch eMatchLevel = LOCALE_MATCH_NONE; LocaleMatch eMatchLevel = LOCALE_MATCH_NONE;
if ( !rLocale1.Language.compareTo(rLocale2.Language) ) if ( rLocale1.Language == rLocale2.Language )
eMatchLevel = LOCALE_MATCH_LANG; eMatchLevel = LOCALE_MATCH_LANG;
else else
return eMatchLevel; return eMatchLevel;
if ( !rLocale1.Country.compareTo(rLocale2.Country) ) if ( rLocale1.Country == rLocale2.Country )
eMatchLevel = LOCALE_MATCH_LANG_COUNTRY; eMatchLevel = LOCALE_MATCH_LANG_COUNTRY;
else else
return eMatchLevel; return eMatchLevel;
if ( !rLocale1.Variant.compareTo(rLocale2.Variant) ) if ( rLocale1.Variant == rLocale2.Variant )
eMatchLevel = LOCALE_MATCH_ALL; eMatchLevel = LOCALE_MATCH_ALL;
return eMatchLevel; return eMatchLevel;
......
...@@ -3058,7 +3058,7 @@ void XclImpPictureObj::ReadPictFmla( XclImpStream& rStrm, sal_uInt16 nLinkSize ) ...@@ -3058,7 +3058,7 @@ void XclImpPictureObj::ReadPictFmla( XclImpStream& rStrm, sal_uInt16 nLinkSize )
if( IsOcxControl() ) if( IsOcxControl() )
{ {
// #i26521# form controls to be ignored // #i26521# form controls to be ignored
if( maClassName.EqualsAscii( "Forms.HTML:Hidden.1" ) ) if( maClassName == "Forms.HTML:Hidden.1" )
{ {
SetProcessSdrObj( false ); SetProcessSdrObj( false );
return; return;
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <com/sun/star/chart/XChartDocument.hpp> #include <com/sun/star/chart/XChartDocument.hpp>
#include "svx/sdtaitm.hxx" #include "svx/sdtaitm.hxx"
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include "rtl/ustring.hxx"
class ScPostIt; class ScPostIt;
...@@ -252,7 +253,7 @@ private: ...@@ -252,7 +253,7 @@ private:
virtual void WriteSubRecs( XclExpStream& rStrm ); virtual void WriteSubRecs( XclExpStream& rStrm );
private: private:
String maClassName; /// Class name of the control. OUString maClassName; /// Class name of the control.
sal_uInt32 mnStrmStart; /// Start position in 'Ctls' stream. sal_uInt32 mnStrmStart; /// Start position in 'Ctls' stream.
sal_uInt32 mnStrmSize; /// Size in 'Ctls' stream. sal_uInt32 mnStrmSize; /// Size in 'Ctls' stream.
}; };
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include "xistring.hxx" #include "xistring.hxx"
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <oox/ole/olehelper.hxx> #include <oox/ole/olehelper.hxx>
#include "rtl/ustring.hxx"
namespace com { namespace sun { namespace star { namespace com { namespace sun { namespace star {
namespace drawing { class XShape; } namespace drawing { class XShape; }
namespace form { class XForm; } namespace form { class XForm; }
...@@ -905,7 +907,7 @@ private: ...@@ -905,7 +907,7 @@ private:
private: private:
Graphic maGraphic; /// Picture or OLE placeholder graphic. Graphic maGraphic; /// Picture or OLE placeholder graphic.
Rectangle maVisArea; /// Size of graphic. Rectangle maVisArea; /// Size of graphic.
String maClassName; /// Class name of embedded OLE object. OUString maClassName; /// Class name of embedded OLE object.
sal_uInt32 mnStorageId; /// Identifier of the storage for this object. sal_uInt32 mnStorageId; /// Identifier of the storage for this object.
sal_Size mnCtlsStrmPos; /// Position in 'Ctls' stream for this control. sal_Size mnCtlsStrmPos; /// Position in 'Ctls' stream for this control.
sal_Size mnCtlsStrmSize; /// Size in 'Ctls' stream for this control. sal_Size mnCtlsStrmSize; /// Size in 'Ctls' stream for this control.
......
...@@ -563,7 +563,7 @@ ContainerUtilities::FieldInList( const uno::Sequence< OUString >& SearchList, co ...@@ -563,7 +563,7 @@ ContainerUtilities::FieldInList( const uno::Sequence< OUString >& SearchList, co
// I wonder why comparing lexicographically is done // I wonder why comparing lexicographically is done
// when its a match is whats interesting? // when its a match is whats interesting?
//if (SearchList[i].compareTo(SearchString) == 0) //if (SearchList[i].compareTo(SearchString) == 0)
if ( SearchList[i].equals( SearchString ) ) if ( SearchList[i] == SearchString )
{ {
retvalue = i; retvalue = i;
break; break;
......
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