[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/libs/flake
From:       Thorsten Zachmann <t.zachmann () zagge ! de>
Date:       2008-08-24 11:55:30
Message-ID: 1219578930.835550.20217.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 851705 by zachmann:

o fix: return a qreal and not a bool


 M  +2 -2      KoCanvasResourceProvider.cpp  
 M  +1 -1      KoCanvasResourceProvider.h  


--- trunk/koffice/libs/flake/KoCanvasResourceProvider.cpp #851704:851705
@@ -148,9 +148,9 @@
     return d->resources[key].toInt();
 }
 
-bool KoCanvasResourceProvider::doubleResource(int key) const
+qreal KoCanvasResourceProvider::doubleResource(int key) const
 {
-    if (! d->resources.contains(key))
+    if(! d->resources.contains(key))
         return 0.;
     return d->resources[key].toDouble();
 }
--- trunk/koffice/libs/flake/KoCanvasResourceProvider.h #851704:851705
@@ -157,7 +157,7 @@
      * Return the resource determined by param key as a qreal.
      * @param key the indentifying key for the resource.
      */
-    bool doubleResource(int key) const;
+    qreal doubleResource(int key) const;
 
     /**
      * Return the resource determined by param key as a KoColor.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic