From 13deb4cd8fca3f222003e0ace9875b80fda433d2 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sun, 4 Nov 2012 01:22:43 +0100 Subject: switch from String to OUString Change-Id: I755d6e6e9c1118792578de52bd3af484f88072be --- sc/inc/conditio.hxx | 2 +- sc/source/core/data/conditio.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sc') diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx index 72f1fc8ed88c..935f33e96cb0 100644 --- a/sc/inc/conditio.hxx +++ b/sc/inc/conditio.hxx @@ -186,7 +186,7 @@ class SC_DLLPUBLIC ScConditionEntry : public ScFormatEntry void Interpret( const ScAddress& rPos ); bool IsValid( double nArg, const ScAddress& rPos ) const; - bool IsValidStr( const String& rArg, const ScAddress& rPos ) const; + bool IsValidStr( const rtl::OUString& rArg, const ScAddress& rPos ) const; public: ScConditionEntry( ScConditionMode eOper, diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index f660b3bf7a06..4e3ffcb7f73d 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -1095,7 +1095,7 @@ bool ScConditionEntry::IsValid( double nArg, const ScAddress& rPos ) const return bValid; } -bool ScConditionEntry::IsValidStr( const String& rArg, const ScAddress& rPos ) const +bool ScConditionEntry::IsValidStr( const rtl::OUString& rArg, const ScAddress& rPos ) const { bool bValid = false; // Interpret muss schon gerufen sein @@ -1105,7 +1105,7 @@ bool ScConditionEntry::IsValidStr( const String& rArg, const ScAddress& rPos ) c if ( eOp == SC_COND_DUPLICATE || eOp == SC_COND_NOTDUPLICATE ) { - if( pCondFormat && rArg.Len() ) + if( pCondFormat && !rArg.isEmpty() ) { bValid = IsDuplicate( 0.0, rArg ); if( eOp == SC_COND_NOTDUPLICATE ) @@ -1122,8 +1122,8 @@ bool ScConditionEntry::IsValidStr( const String& rArg, const ScAddress& rPos ) c if ( !bIsStr2 ) return false; - String aUpVal1( aStrVal1 ); //! als Member? (dann auch in Interpret setzen) - String aUpVal2( aStrVal2 ); + rtl::OUString aUpVal1( aStrVal1 ); //! als Member? (dann auch in Interpret setzen) + rtl::OUString aUpVal2( aStrVal2 ); if ( eOp == SC_COND_BETWEEN || eOp == SC_COND_NOTBETWEEN ) if ( ScGlobal::GetCollator()->compareString( aUpVal1, aUpVal2 ) -- cgit