[librsvgmm] Remove redundant g_type_init() call
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Subject: [librsvgmm] Remove redundant g_type_init() call
- Date: Sun, 14 Jun 2009 21:29:50 -0400 (EDT)
commit 4cd9a39a65661d702b0a585f1820fd256c46f6db
Author: Daniel Elstner <danielk openismus com>
Date: Mon Jun 15 03:13:22 2009 +0200
Remove redundant g_type_init() call
* tools/extradefs/generate_extra_defs_librsvg.cc (main): Remove
call to g_type_init() since it is already called by rsvg_init().
tools/extradefs/generate_extra_defs_librsvg.cc | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/tools/extradefs/generate_extra_defs_librsvg.cc b/tools/extradefs/generate_extra_defs_librsvg.cc
index 3010212..8437ca8 100644
--- a/tools/extradefs/generate_extra_defs_librsvg.cc
+++ b/tools/extradefs/generate_extra_defs_librsvg.cc
@@ -17,16 +17,14 @@
*/
#include <glibmm_generate_extra_defs/generate_extra_defs.h>
-#include <glib-object.h>
#include <librsvg/rsvg.h>
#include <iostream>
int main(int, char**)
{
- g_type_init();
rsvg_init();
- std::cout << get_defs(RSVG_TYPE_HANDLE) << std::endl;
+ std::cout << get_defs(RSVG_TYPE_HANDLE);
rsvg_term();
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]