[glibmm] glibmm: VariantBase: Correct typo in docs.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] glibmm: VariantBase: Correct typo in docs.
- Date: Fri, 6 Aug 2010 22:31:11 +0000 (UTC)
commit 5fc03fb7296750af559fc5284e677f20eceb6920
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Fri Aug 6 17:51:59 2010 -0400
glibmm: VariantBase: Correct typo in docs.
* glib/src/variant.hg: Correct typos in class docs.
* glib/src/variant.ccg (get_normal):
(byteswap): Receive the GVariants from the C functions as const since
the variants should not be modified.
ChangeLog | 9 +++++++++
glib/src/variant.ccg | 6 ++++--
glib/src/variant.hg | 4 ++--
3 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 87449dc..6ec5cde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2010-08-06 José Alburquerque <jaalburqu svn gnome org>
+ glibmm: VariantBase: Correct typo in docs.
+
+ * glib/src/variant.hg: Correct typos in class docs.
+ * glib/src/variant.ccg (get_normal):
+ (byteswap): Receive the GVariants from the C functions as const since
+ the variants should not be modified.
+
+2010-08-06 José Alburquerque <jaalburqu svn gnome org>
+
giomm: UnixConnection: Add receive/send_credentials() methods.
* gio/src/unixconnection.hg: Add receive/send_credentials() which
diff --git a/glib/src/variant.ccg b/glib/src/variant.ccg
index 90bb010..c30275a 100644
--- a/glib/src/variant.ccg
+++ b/glib/src/variant.ccg
@@ -24,13 +24,15 @@ namespace Glib
void VariantBase::get_normal_form(VariantBase& result) const
{
- GVariant* g_value = g_variant_get_normal_form(const_cast<GVariant*>(gobj()));
+ GVariant* const g_value =
+ g_variant_get_normal_form(const_cast<GVariant*>(gobj()));
+
result.init(g_value); // g_value is already referenced.
}
void VariantBase::byteswap(VariantBase& result) const
{
- GVariant* g_value = g_variant_byteswap(const_cast<GVariant*>(gobj()));
+ GVariant* const g_value = g_variant_byteswap(const_cast<GVariant*>(gobj()));
result.init(g_value); // g_value is already referenced.
}
diff --git a/glib/src/variant.hg b/glib/src/variant.hg
index 3b14da7..615d274 100644
--- a/glib/src/variant.hg
+++ b/glib/src/variant.hg
@@ -84,7 +84,7 @@ public:
* untrusted sources and you want to ensure your serialised output is
* definitely in normal form.
*
- * @param result A Location in which to store the trusted VariantBase.
+ * @param result A location in which to store the trusted VariantBase.
* @newin{2,24}
*/
void get_normal_form(VariantBase& result) const;
@@ -103,7 +103,7 @@ public:
*
* The returned value is always in normal form and is marked as trusted.
*
- * @param result : A Location in which to store the byteswapped form of this
+ * @param result A location in which to store the byteswapped form of this
* variant.
* @newin{2,24}
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]