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

David Tardon dtardon at redhat.com
Wed Apr 29 04:49:03 PDT 2015


 starmath/source/document.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 59adad74084e9281887e3f78a225794f37b784d7
Author: David Tardon <dtardon at redhat.com>
Date:   Wed Apr 29 13:48:06 2015 +0200

    error C2666: 'operator ==' : 2 overloads have similar conversions
    
    Change-Id: I94b54586477ae0cad3b5351953cccffffecbf902

diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 1e41db8..254677f 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -506,7 +506,8 @@ SmCursor& SmDocShell::GetCursor(){
 
 SmPrinterAccess::SmPrinterAccess( SmDocShell &rDocShell )
 {
-    if ( 0 != (pPrinter = rDocShell.GetPrt()) )
+    pPrinter = rDocShell.GetPrt();
+    if ( pPrinter )
     {
         pPrinter->Push( PushFlags::MAPMODE );
         if ( SfxObjectCreateMode::EMBEDDED == rDocShell.GetCreateMode() )


More information about the Libreoffice-commits mailing list