[Libreoffice-commits] .: vcl/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Dec 17 05:06:05 PST 2012


 vcl/source/window/builder.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit daca24d2779260042ee84229f0f476a03e2a5ca0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Dec 17 13:05:17 2012 +0000

    cppcheck: I wanted to check for 'e' and 'E' here for 'end'
    
    Change-Id: Ie5a1da69c1282c518ec33835fefe723b0fdf3a40

diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 61036a7..18bb670 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1911,7 +1911,7 @@ void VclBuilder::applyPackingProperty(Window *pCurrent,
             }
             else if (sKey == "pack-type")
             {
-                VclPackType ePackType = (sValue[0] == 'e' || sValue[0] == 'e') ? VCL_PACK_END : VCL_PACK_START;
+                VclPackType ePackType = (sValue[0] == 'e' || sValue[0] == 'E') ? VCL_PACK_END : VCL_PACK_START;
                 pCurrent->set_pack_type(ePackType);
             }
             else if (sKey == "left-attach")


More information about the Libreoffice-commits mailing list