vcl/source/gdi/jobset.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 554ba09f76ca1b7b29c0fc19aa4df443840b02d3
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Fri Dec 12 12:25:01 2014 +0100

    vcl: Use appropriate OUString functions on string constants
    
    Change-Id: Ie230115d71bffeb08fc13380648e8216c43f3a5d

diff --git a/vcl/source/gdi/jobset.cxx b/vcl/source/gdi/jobset.cxx
index ec1f44f..d9fca22 100644
--- a/vcl/source/gdi/jobset.cxx
+++ b/vcl/source/gdi/jobset.cxx
@@ -277,15 +277,15 @@ SvStream& ReadJobSetup( SvStream& rIStream, JobSetup& 
rJobSetup )
                     {
                         OUString aKey = 
read_uInt16_lenPrefixed_uInt8s_ToOUString(rIStream, RTL_TEXTENCODING_UTF8);
                         OUString aValue = 
read_uInt16_lenPrefixed_uInt8s_ToOUString(rIStream, RTL_TEXTENCODING_UTF8);
-                        if( aKey.equalsAscii( "COMPAT_DUPLEX_MODE" ) )
+                        if( aKey == "COMPAT_DUPLEX_MODE" )
                         {
-                            if( aValue.equalsAscii( "DUPLEX_UNKNOWN" ) )
+                            if( aValue == "DUPLEX_UNKNOWN" )
                                 pJobData->meDuplexMode = DUPLEX_UNKNOWN;
-                            else if( aValue.equalsAscii( "DUPLEX_OFF" ) )
+                            else if( aValue == "DUPLEX_OFF" )
                                 pJobData->meDuplexMode = DUPLEX_OFF;
-                            else if( aValue.equalsAscii( "DUPLEX_SHORTEDGE" ) )
+                            else if( aValue == "DUPLEX_SHORTEDGE" )
                                 pJobData->meDuplexMode = DUPLEX_SHORTEDGE;
-                            else if( aValue.equalsAscii( "DUPLEX_LONGEDGE" ) )
+                            else if( aValue == "DUPLEX_LONGEDGE" )
                                 pJobData->meDuplexMode = DUPLEX_LONGEDGE;
                         }
                         else
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to