[Libreoffice-commits] core.git: vcl/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Sun May 28 15:47:25 UTC 2017


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

New commits:
commit ad097e4cac307c6f0eac27e38afe9cdc250ec697
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Sun May 28 11:24:31 2017 +0200

    cppcheck: duplicateExpression
    
    > Same expression on both sides of '|'
    
    we don't need WB_CLOSEABLE in the mask if we add it anyway
    
    ever since commit a0e2cc39e2c9d1284ef17180b6ab659a1dd2c540
    Date:   Tue Aug 7 10:54:21 2001 +0000
        #77230# - Close() works now correct
    
    Change-Id: I13d0f2ee8d12a9ab35080a1db09d398c7ac2cdb9
    Reviewed-on: https://gerrit.libreoffice.org/38103
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>

diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 080e9ace55fb..91525b3f590c 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -415,7 +415,7 @@ void Dialog::ImplInit( vcl::Window* pParent, WinBits nStyle, InitFlag eFlag )
         {
             mpWindowImpl->mbFrame         = true;
             mpWindowImpl->mbOverlapWin    = true;
-            SystemWindow::ImplInit( pParent, (nStyle & (WB_MOVEABLE | WB_SIZEABLE | WB_ROLLABLE | WB_CLOSEABLE | WB_STANDALONE)) | WB_CLOSEABLE, nullptr );
+            SystemWindow::ImplInit( pParent, (nStyle & (WB_MOVEABLE | WB_SIZEABLE | WB_ROLLABLE | WB_STANDALONE)) | WB_CLOSEABLE, nullptr );
             // Now set all style bits
             mpWindowImpl->mnStyle = nStyle;
         }


More information about the Libreoffice-commits mailing list