summaryrefslogtreecommitdiffstats
path: root/src/widgets/icon.cpp
diff options
context:
space:
mode:
authorBryce Harrington <bryce@bryceharrington.org>2007-02-20 07:28:05 +0000
committerbryce <bryce@users.sourceforge.net>2007-02-20 07:28:05 +0000
commita883506dfc9b0f30197d82354d5332446e4325ba (patch)
tree2009a2a33fabb45afe958b804bae63d2d567c490 /src/widgets/icon.cpp
parentPartial fix for bug 980157. (diff)
downloadinkscape-a883506dfc9b0f30197d82354d5332446e4325ba.tar.gz
inkscape-a883506dfc9b0f30197d82354d5332446e4325ba.zip
Moving functions from svg_preview_cache.h to a new .cpp
(bzr r2402)
Diffstat (limited to 'src/widgets/icon.cpp')
-rw-r--r--src/widgets/icon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/icon.cpp b/src/widgets/icon.cpp
index 264349bd1..dd7770ac1 100644
--- a/src/widgets/icon.cpp
+++ b/src/widgets/icon.cpp
@@ -833,8 +833,8 @@ static guchar *load_svg_pixels(gchar const *name,
// returns true if icon needed preloading, false if nothing was done
static bool prerender_icon(gchar const *name, unsigned lsize, unsigned psize)
{
- Glib::ustring key=icon_cache_key(name, lsize, psize);
- guchar *px=get_cached_pixels(key);
+ Glib::ustring key = icon_cache_key(name, lsize, psize);
+ guchar *px = get_cached_pixels(key);
if (px) {
return false;
} else {
@@ -849,10 +849,10 @@ static bool prerender_icon(gchar const *name, unsigned lsize, unsigned psize)
static guchar *
sp_icon_image_load_svg(gchar const *name, unsigned lsize, unsigned psize)
{
- Glib::ustring key=icon_cache_key(name, lsize, psize);
+ Glib::ustring key = icon_cache_key(name, lsize, psize);
// did we already load this icon at this scale/size?
- guchar *px=get_cached_pixels(key);
+ guchar *px = get_cached_pixels(key);
if (!px) {
px = load_svg_pixels(name, lsize, psize);
if (px) {