diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-04 04:14:17 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-04 04:14:17 +0000 |
commit | 9c0f0bb4514b1defc32c133afef4237f4e509894 (patch) | |
tree | 326ee6d17cc06c8ee88c901b08d4a98fc9ffed83 /gdk-pixbuf | |
parent | 8862bf9233278e56e92ed5ec5b0290d34032c18b (diff) | |
download | gtk+-9c0f0bb4514b1defc32c133afef4237f4e509894.tar.gz |
Small savings
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index aa97701fc5..9a4b09b9ad 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2006-04-04 Matthias Clasen <mclasen@redhat.com> + + * gdk-pixbuf.c: No point in making the error path fast by + caching quarks. + 2006-03-24 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-loader.c (gdk_pixbuf_loader_write): Remove a diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c index 8847c734e5..1bebc9b61a 100644 --- a/gdk-pixbuf/gdk-pixbuf.c +++ b/gdk-pixbuf/gdk-pixbuf.c @@ -542,11 +542,7 @@ GDK_PIXBUF_VAR const char *gdk_pixbuf_version = GDK_PIXBUF_VERSION; GQuark gdk_pixbuf_error_quark (void) { - static GQuark q = 0; - if (q == 0) - q = g_quark_from_static_string ("gdk-pixbuf-error-quark"); - - return q; + return g_quark_from_static_string ("gdk-pixbuf-error-quark"); } /** |