diff options
Diffstat (limited to 'vcl/unx/gtk/a11y')
-rw-r--r-- | vcl/unx/gtk/a11y/atktext.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/gtk/a11y/atktextattributes.cxx | 4 |
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; |