Ryo SHIMIZU
furyo****@users*****
Mon Feb 19 20:27:04 JST 2007
Index: kazehakase/src/mozilla/kz-mozembed.cpp diff -u kazehakase/src/mozilla/kz-mozembed.cpp:1.229 kazehakase/src/mozilla/kz-mozembed.cpp:1.230 --- kazehakase/src/mozilla/kz-mozembed.cpp:1.229 Sun Feb 4 23:36:15 2007 +++ kazehakase/src/mozilla/kz-mozembed.cpp Mon Feb 19 20:27:03 2007 @@ -1024,29 +1024,29 @@ filename = mozilla_store_history_file(kzembed); if (filename) g_free(filename); + } - if (KZ_GET_SEARCH) + if (KZ_GET_SEARCH) + { + const gchar *title = kz_moz_embed_get_title(KZ_EMBED(kzembed)); + + nsCOMPtr<nsIDOMNode> node = do_QueryInterface(domDoc); + nsCOMPtr<nsIDOMSerializer> serializer; + serializer = do_CreateInstance(NS_XMLSERIALIZER_CONTRACTID, &rv); + if (serializer) { - const gchar *title = kz_moz_embed_get_title(KZ_EMBED(kzembed)); - - nsCOMPtr<nsIDOMNode> node = do_QueryInterface(domDoc); - nsCOMPtr<nsIDOMSerializer> serializer; - serializer = do_CreateInstance(NS_XMLSERIALIZER_CONTRACTID, &rv); - if (serializer) - { - serializer->SerializeToString(node, value); - NS_UTF16ToCString (value, NS_CSTRING_ENCODING_UTF8, cValue); - } - kz_search_register_document(KZ_GET_SEARCH, uri, title, cValue.get(), last_modified); + serializer->SerializeToString(node, value); + NS_UTF16ToCString (value, NS_CSTRING_ENCODING_UTF8, cValue); + } + kz_search_register_document(KZ_GET_SEARCH, uri, title, cValue.get(), last_modified); #ifdef WITH_ANTHY_TRAINER - KzSearch *search = kz_search_new("anthy-trainer"); - if (search) - { - kz_search_register_document(search, uri, title, cValue.get(), last_modified); - g_object_unref(search); - } -#endif + KzSearch *search = kz_search_new("anthy-trainer"); + if (search) + { + kz_search_register_document(search, uri, title, cValue.get(), last_modified); + g_object_unref(search); } +#endif } } }