summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/filter/xml/xmlcondformat.cxx6
-rw-r--r--sc/source/ui/vba/vbafilesearch.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/xml/xmlcondformat.cxx b/sc/source/filter/xml/xmlcondformat.cxx
index ed9bc497c48a..7878b827e6cb 100644
--- a/sc/source/filter/xml/xmlcondformat.cxx
+++ b/sc/source/filter/xml/xmlcondformat.cxx
@@ -343,17 +343,17 @@ void GetConditionData(const rtl::OUString& rValue, ScConditionMode& eMode, rtl::
rExpr1 = rValue.copy(2);
eMode = SC_COND_NOTEQUAL;
}
- else if(rValue.indexOf("<") == 0)
+ else if(rValue.indexOf('<') == 0)
{
rExpr1 = rValue.copy(1);
eMode = SC_COND_LESS;
}
- else if(rValue.indexOf("=") == 0)
+ else if(rValue.indexOf('=') == 0)
{
rExpr1 = rValue.copy(1);
eMode = SC_COND_EQUAL;
}
- else if(rValue.indexOf(">") == 0)
+ else if(rValue.indexOf('>') == 0)
{
rExpr1 = rValue.copy(1);
eMode = SC_COND_GREATER;
diff --git a/sc/source/ui/vba/vbafilesearch.cxx b/sc/source/ui/vba/vbafilesearch.cxx
index ddb5c04be3eb..c0c6f9761541 100644
--- a/sc/source/ui/vba/vbafilesearch.cxx
+++ b/sc/source/ui/vba/vbafilesearch.cxx
@@ -180,7 +180,7 @@ sal_Int32 SAL_CALL ScVbaFileSearch::Execute( ) throw (css::uno::RuntimeExceptio
if ( IsWildCard( aTempFileName ) )
{
bool bEndWithAsterisk = aTempFileName.endsWithAsciiL("*", 1);
- bool bStartWithAsterisk = (aTempFileName.indexOf(::rtl::OUString("*")) == 0);
+ bool bStartWithAsterisk = (aTempFileName.indexOf('*') == 0);
if ( !bEndWithAsterisk && !bStartWithAsterisk )
{
aTempFileName = ::rtl::OUString("*") + aTempFileName + ::rtl::OUString("*");