diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-10-24 03:57:58 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-10-24 03:57:58 +0800 |
commit | b1be2a6d83aa9b9404ca735e73e73dc903625dc7 (patch) | |
tree | 36ede0609588101ba900b8c018462b7c7a3591c9 /camel/camel-gpg-context.c | |
parent | 18ca85654d06140f30ea9db347dcf4f7cf00d7f0 (diff) | |
download | gsoc2013-evolution-b1be2a6d83aa9b9404ca735e73e73dc903625dc7.tar.gz gsoc2013-evolution-b1be2a6d83aa9b9404ca735e73e73dc903625dc7.tar.zst gsoc2013-evolution-b1be2a6d83aa9b9404ca735e73e73dc903625dc7.zip |
Removed unneeded CAMEL_OBJECT() casts.
2003-10-23 Jeffrey Stedfast <fejj@ximian.com>
* *.c: Removed unneeded CAMEL_OBJECT() casts.
svn path=/trunk/; revision=23052
Diffstat (limited to 'camel/camel-gpg-context.c')
-rw-r--r-- | camel/camel-gpg-context.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c index 2ff800615d..79c14d9b71 100644 --- a/camel/camel-gpg-context.c +++ b/camel/camel-gpg-context.c @@ -297,7 +297,7 @@ gpg_ctx_new (CamelSession *session) gpg = g_new (struct _GpgCtx, 1); gpg->mode = GPG_CTX_MODE_SIGN; gpg->session = session; - camel_object_ref (CAMEL_OBJECT (session)); + camel_object_ref (session); gpg->userid_hint = g_hash_table_new (g_str_hash, g_str_equal); gpg->complete = FALSE; gpg->seen_eof1 = TRUE; @@ -411,18 +411,18 @@ gpg_ctx_set_armor (struct _GpgCtx *gpg, gboolean armor) static void gpg_ctx_set_istream (struct _GpgCtx *gpg, CamelStream *istream) { - camel_object_ref (CAMEL_OBJECT (istream)); + camel_object_ref (istream); if (gpg->istream) - camel_object_unref (CAMEL_OBJECT (gpg->istream)); + camel_object_unref (gpg->istream); gpg->istream = istream; } static void gpg_ctx_set_ostream (struct _GpgCtx *gpg, CamelStream *ostream) { - camel_object_ref (CAMEL_OBJECT (ostream)); + camel_object_ref (ostream); if (gpg->ostream) - camel_object_unref (CAMEL_OBJECT (gpg->ostream)); + camel_object_unref (gpg->ostream); gpg->ostream = ostream; gpg->seen_eof1 = FALSE; } @@ -455,7 +455,7 @@ gpg_ctx_free (struct _GpgCtx *gpg) int i; if (gpg->session) - camel_object_unref (CAMEL_OBJECT (gpg->session)); + camel_object_unref (gpg->session); g_hash_table_foreach (gpg->userid_hint, userid_hint_free, NULL); g_hash_table_destroy (gpg->userid_hint); @@ -488,10 +488,10 @@ gpg_ctx_free (struct _GpgCtx *gpg) g_free (gpg->passwd); if (gpg->istream) - camel_object_unref (CAMEL_OBJECT (gpg->istream)); + camel_object_unref (gpg->istream); if (gpg->ostream) - camel_object_unref (CAMEL_OBJECT (gpg->ostream)); + camel_object_unref (gpg->ostream); camel_object_unref (gpg->diagnostics); @@ -1349,7 +1349,8 @@ swrite (CamelStream *istream) if (ret != -1) ret = camel_stream_close (ostream); } - camel_object_unref (CAMEL_OBJECT (ostream)); + + camel_object_unref (ostream); if (ret == -1) { unlink (template); |