[Libreoffice-commits] core.git: starmath/inc

Stephan Bergmann sbergman at redhat.com
Tue Apr 28 23:47:48 PDT 2015


 starmath/inc/document.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d7bd8f6f359872141f7239725359b6ffd4e7bc2b
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Apr 29 08:47:21 2015 +0200

    avoid ambiguity
    
    Change-Id: Iaccb07e1060ea2f3aa611170895da3e72bf6fefd

diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index f120604..faa52b8 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -173,7 +173,7 @@ public:
     //Access for the View. This access is not for the OLE-case!
     //and for the communication with the SFX!
     //All internal printer uses should work with the SmPrinterAccess only
-    bool        HasPrinter()    { return 0 != pPrinter; }
+    bool        HasPrinter()    { return pPrinter != nullptr; }
     SfxPrinter *GetPrinter()    { GetPrt(); return pPrinter; }
     void        SetPrinter( SfxPrinter * );
 


More information about the Libreoffice-commits mailing list