[couchdb-glib] Use g_strcmp0 instead of g_str_equal
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [couchdb-glib] Use g_strcmp0 instead of g_str_equal
- Date: Fri, 1 Apr 2011 15:34:20 +0000 (UTC)
commit bc6803e3806635cb4ff2086558b37778f8e28822
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Thu Mar 31 18:32:03 2011 +0200
Use g_strcmp0 instead of g_str_equal
couchdb-glib/couchdb-document.c | 2 +-
tests/test-desktopcouch-glib.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/couchdb-glib/couchdb-document.c b/couchdb-glib/couchdb-document.c
index a81cd54..eb14e23 100644
--- a/couchdb-glib/couchdb-document.c
+++ b/couchdb-glib/couchdb-document.c
@@ -757,5 +757,5 @@ couchdb_document_is_task (CouchdbDocument *document)
g_return_val_if_fail (COUCHDB_IS_DOCUMENT (document), FALSE);
return !g_strcmp0 (couchdb_document_get_record_type (document),
- COUCHDB_RECORD_TYPE_TASK);
+ COUCHDB_RECORD_TYPE_TASK);
}
diff --git a/tests/test-desktopcouch-glib.c b/tests/test-desktopcouch-glib.c
index ad06289..6c45d1e 100644
--- a/tests/test-desktopcouch-glib.c
+++ b/tests/test-desktopcouch-glib.c
@@ -68,7 +68,7 @@ test_contacts (void)
CouchdbDocument *document = doc_list->data;
if (couchdb_document_is_contact (document)) {
- g_assert (g_str_equal (couchdb_document_get_record_type (document), COUCHDB_RECORD_TYPE_CONTACT));
+ g_assert (g_strcmp0 (couchdb_document_get_record_type (document), COUCHDB_RECORD_TYPE_CONTACT));
}
doc_list = g_slist_remove (doc_list, document);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]