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

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Sun Mar 18 05:27:00 UTC 2018


 vcl/source/graphic/GraphicObject.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit ea01c61fe374b1122a03568d72f166bb16fa7858
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Thu Mar 15 22:19:52 2018 +0900

    remove define for GraphicObject url and inline the string
    
    Change-Id: I505f7c21f666d78955aace1776536d34a9e29ce3
    Reviewed-on: https://gerrit.libreoffice.org/51391
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/vcl/source/graphic/GraphicObject.cxx b/vcl/source/graphic/GraphicObject.cxx
index b67ad659e8e1..d302d6952877 100644
--- a/vcl/source/graphic/GraphicObject.cxx
+++ b/vcl/source/graphic/GraphicObject.cxx
@@ -1071,11 +1071,9 @@ IMPL_LINK_NOARG(GraphicObject, ImplAutoSwapOutHdl, Timer *, void)
         mxSwapOutTimer->Start();
 }
 
-#define UNO_NAME_GRAPHOBJ_URLPREFIX "vnd.sun.star.GraphicObject:"
-
 bool GraphicObject::isGraphicObjectUniqueIdURL(OUString const & rURL)
 {
-    const OUString aPrefix(UNO_NAME_GRAPHOBJ_URLPREFIX);
+    const OUString aPrefix("vnd.sun.star.GraphicObject:");
     return rURL.startsWith(aPrefix);
 }
 


More information about the Libreoffice-commits mailing list