summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/a11y
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-02-01 12:16:11 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-02-02 19:53:07 -0200
commitbeccf7c9dd4966347fa31e11922fd73bd40dfeb9 (patch)
tree33d40aadd3ef399bdfce0f3662b8ad0055fee125 /vcl/unx/gtk/a11y
parent4cb33a7db765f8ad06e65d24a2396f2857a9cf0d (diff)
Fix for fdo43460 Part LIX getLength() to isEmpty()
Part LIX Modules vcl (part 3)
Diffstat (limited to 'vcl/unx/gtk/a11y')
-rw-r--r--vcl/unx/gtk/a11y/atktext.cxx6
-rw-r--r--vcl/unx/gtk/a11y/atktextattributes.cxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/vcl/unx/gtk/a11y/atktext.cxx b/vcl/unx/gtk/a11y/atktext.cxx
index 96a56e3e46c2..f14fb3dbb8ad 100644
--- a/vcl/unx/gtk/a11y/atktext.cxx
+++ b/vcl/unx/gtk/a11y/atktext.cxx
@@ -80,7 +80,7 @@ adjust_boundaries( accessibility::XAccessibleText* pText,
rtl::OUString aString;
gint start = 0, end = 0;
- if( rTextSegment.SegmentText.getLength() > 0 )
+ if( !rTextSegment.SegmentText.isEmpty() )
{
switch(boundary_type)
{
@@ -112,7 +112,7 @@ adjust_boundaries( accessibility::XAccessibleText* pText,
// Determine the start index of the next segment
aTextSegment = pText->getTextBehindIndex(rTextSegment.SegmentEnd,
text_type_from_boundary(boundary_type));
- if( aTextSegment.SegmentText.getLength() > 0 )
+ if( !aTextSegment.SegmentText.isEmpty() )
end = aTextSegment.SegmentStart;
else
end = pText->getCharacterCount();
@@ -126,7 +126,7 @@ adjust_boundaries( accessibility::XAccessibleText* pText,
// Determine the end index of the previous segment
aTextSegment = pText->getTextBeforeIndex(rTextSegment.SegmentStart,
text_type_from_boundary(boundary_type));
- if( aTextSegment.SegmentText.getLength() > 0 )
+ if( !aTextSegment.SegmentText.isEmpty() )
start = aTextSegment.SegmentEnd;
else
start = 0;
diff --git a/vcl/unx/gtk/a11y/atktextattributes.cxx b/vcl/unx/gtk/a11y/atktextattributes.cxx
index fca51df0ad00..989bdffd22d8 100644
--- a/vcl/unx/gtk/a11y/atktextattributes.cxx
+++ b/vcl/unx/gtk/a11y/atktextattributes.cxx
@@ -544,7 +544,7 @@ GetString(const uno::Any& rAny)
{
rtl::OString aFontName = rtl::OUStringToOString( rAny.get< rtl::OUString > (), RTL_TEXTENCODING_UTF8 );
- if( aFontName.getLength() )
+ if( !aFontName.isEmpty() )
return g_strdup( aFontName.getStr() );
return NULL;
@@ -555,7 +555,7 @@ SetString( uno::Any& rAny, const gchar * value )
{
rtl::OString aFontName( value );
- if( aFontName.getLength() )
+ if( !aFontName.isEmpty() )
{
rAny = uno::makeAny( rtl::OStringToOUString( aFontName, RTL_TEXTENCODING_UTF8 ) );
return true;