diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-02 16:49:24 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-02 19:29:45 +0200 |
commit | eace5e0a1c4bab37699429447b1a17e3c9410503 (patch) | |
tree | 9bd81690b64e4218e565ec0a6a961c89041272e4 /sc/source/ui/miscdlgs/anyrefdg.cxx | |
parent | e9d8831d18d1120593137632a31b2dad9f8d20f7 (diff) |
remove last uses of XubString in sc
Change-Id: I44c42f0268b0d7c2e77ab7e807610d39b7b7ea56
Diffstat (limited to 'sc/source/ui/miscdlgs/anyrefdg.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/anyrefdg.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx index 69f6f535cd3c..1cd114ef4784 100644 --- a/sc/source/ui/miscdlgs/anyrefdg.cxx +++ b/sc/source/ui/miscdlgs/anyrefdg.cxx @@ -112,7 +112,7 @@ void ScFormulaReferenceHelper::enableInput( bool bEnable ) } } // ----------------------------------------------------------------------------- -void ScFormulaReferenceHelper::ShowSimpleReference( const XubString& rStr ) +void ScFormulaReferenceHelper::ShowSimpleReference(const OUString& rStr) { if( bEnableColorRef ) { @@ -172,7 +172,7 @@ bool ScFormulaReferenceHelper::ParseWithNames( ScRangeList& rRanges, const Strin return !bError; } // ----------------------------------------------------------------------------- -void ScFormulaReferenceHelper::ShowFormulaReference( const XubString& rStr ) +void ScFormulaReferenceHelper::ShowFormulaReference(const OUString& rStr) { if( bEnableColorRef) { @@ -251,20 +251,20 @@ void ScFormulaReferenceHelper::HideReference( bool bDoneRefMode ) } } // ----------------------------------------------------------------------------- -void ScFormulaReferenceHelper::ShowReference( const XubString& rStr ) +void ScFormulaReferenceHelper::ShowReference(const OUString& rStr) { if( bEnableColorRef ) { - if( rStr.Search('(')!=STRING_NOTFOUND || - rStr.Search('+')!=STRING_NOTFOUND || - rStr.Search('*')!=STRING_NOTFOUND || - rStr.Search('-')!=STRING_NOTFOUND || - rStr.Search('/')!=STRING_NOTFOUND || - rStr.Search('&')!=STRING_NOTFOUND || - rStr.Search('<')!=STRING_NOTFOUND || - rStr.Search('>')!=STRING_NOTFOUND || - rStr.Search('=')!=STRING_NOTFOUND || - rStr.Search('^')!=STRING_NOTFOUND) + if( rStr.indexOf('(') != -1 || + rStr.indexOf('+') != -1 || + rStr.indexOf('*') != -1 || + rStr.indexOf('-') != -1 || + rStr.indexOf('/') != -1 || + rStr.indexOf('&') != -1 || + rStr.indexOf('<') != -1 || + rStr.indexOf('>') != -1 || + rStr.indexOf('=') != -1 || + rStr.indexOf('^') != -1 ) { ShowFormulaReference(rStr); } @@ -1014,9 +1014,9 @@ void ScRefHandler::HideReference( sal_Bool bDoneRefMode ) m_aHelper.HideReference( bDoneRefMode ); } // ----------------------------------------------------------------------------- -void ScRefHandler::ShowReference( const XubString& rStr ) +void ScRefHandler::ShowReference(const OUString& rStr) { - m_aHelper.ShowReference( rStr ); + m_aHelper.ShowReference(rStr); } // ----------------------------------------------------------------------------- void ScRefHandler::ReleaseFocus( formula::RefEdit* pEdit, formula::RefButton* pButton ) |