[Libreoffice-commits] .: sc/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Dec 17 13:33:49 PST 2010


 sc/source/ui/docshell/docsh2.cxx |    2 +-
 sc/source/ui/docshell/docsh3.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 78cf196f25be1ebde2a23474024edcb4b7c84ea2
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Dec 17 20:43:45 2010 +0000

    WaE: C4805: Unsafe mix of bool and BOOL

diff --git a/sc/source/ui/docshell/docsh2.cxx b/sc/source/ui/docshell/docsh2.cxx
index e415c0e..a57152e 100644
--- a/sc/source/ui/docshell/docsh2.cxx
+++ b/sc/source/ui/docshell/docsh2.cxx
@@ -225,7 +225,7 @@ ScDrawLayer* ScDocShell::MakeDrawLayer()
         InitItems();											// incl. Undo und Basic
         Broadcast( SfxSimpleHint( SC_HINT_DRWLAYER_NEW ) );
         if (nDocumentLock)
-            pDrawLayer->setLock(TRUE);
+            pDrawLayer->setLock(true);
     }
     return pDrawLayer;
 }
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx
index 31f04a5..9ba6a7f 100644
--- a/sc/source/ui/docshell/docsh3.cxx
+++ b/sc/source/ui/docshell/docsh3.cxx
@@ -289,7 +289,7 @@ void ScDocShell::LockDocument_Impl(USHORT nNew)
     {
         ScDrawLayer* pDrawLayer = aDocument.GetDrawLayer();
         if (pDrawLayer)
-            pDrawLayer->setLock(TRUE);
+            pDrawLayer->setLock(true);
     }
     nDocumentLock = nNew;
 }
@@ -301,7 +301,7 @@ void ScDocShell::UnlockDocument_Impl(USHORT nNew)
     {
         ScDrawLayer* pDrawLayer = aDocument.GetDrawLayer();
         if (pDrawLayer)
-            pDrawLayer->setLock(FALSE);
+            pDrawLayer->setLock(false);
     }
 }
 


More information about the Libreoffice-commits mailing list