summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/generic/fontmanager/helper.cxx2
-rw-r--r--vcl/source/control/field.cxx2
-rw-r--r--vcl/source/filter/FilterConfigItem.cxx2
-rw-r--r--vcl/source/filter/sgvtext.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/vcl/generic/fontmanager/helper.cxx b/vcl/generic/fontmanager/helper.cxx
index 6d99dca66c01..bf09d6058cc8 100644
--- a/vcl/generic/fontmanager/helper.cxx
+++ b/vcl/generic/fontmanager/helper.cxx
@@ -358,7 +358,7 @@ void psp::normPath( OString& rPath )
// on many different platforms let's play it safe
OString aPath = rPath.replaceAll("//", "/");
- if( !aPath.isEmpty() && aPath[aPath.getLength()-1] == '/' )
+ if( aPath.endsWith("/") )
aPath = aPath.copy(0, aPath.getLength()-1);
if( ( aPath.indexOf("./") != -1 ||
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index 401f0a1f0d33..44921475cae7 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -118,7 +118,7 @@ static bool ImplNumericGetValue( const OUString& rStr, sal_Int64& rValue,
// negative?
if ( bCurrency )
{
- if ( aStr[0] == '(' && aStr[aStr.getLength()-1] == ')' )
+ if ( aStr.startsWith("(") && aStr.endsWith(")") )
bNegative = true;
if ( !bNegative )
{
diff --git a/vcl/source/filter/FilterConfigItem.cxx b/vcl/source/filter/FilterConfigItem.cxx
index da328f29a5d5..f63963527666 100644
--- a/vcl/source/filter/FilterConfigItem.cxx
+++ b/vcl/source/filter/FilterConfigItem.cxx
@@ -51,7 +51,7 @@ static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv, co
if ( rTree[0] == '/' )
++i;
- if ( rTree[rTree.getLength() - 1] == '/' )
+ if ( rTree.endsWith("/") )
--nTokenCount;
Any aAny;
diff --git a/vcl/source/filter/sgvtext.cxx b/vcl/source/filter/sgvtext.cxx
index 3cadc838804a..113cfff9eb93 100644
--- a/vcl/source/filter/sgvtext.cxx
+++ b/vcl/source/filter/sgvtext.cxx
@@ -1134,7 +1134,7 @@ void SgfFontOne::ReadOne( const OString& rID, OString& Dsc )
if ( Dsc.getLength() < 2 || ( Dsc[Dsc.getLength() - 1] !=')' ) )
return;
- i=Dsc.getLength()-2; // hier ist die ')' des SV-Fontnames
+ i = Dsc.getLength()-2; // hier ist die ')' des SV-Fontnames
sal_Int32 j=0;
while ( i > 0 && ( Dsc[i] != '(' ) )
{