summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Alburquerque <jaalburqu@svn.gnome.org>2012-10-08 23:09:46 -0400
committerJosé Alburquerque <jaalburqu@svn.gnome.org>2012-10-08 23:09:46 -0400
commitf6fb5555f0f00bedf1927b2047e5a724ccf18295 (patch)
treea158d31be08651c26f14a780f4e125c9b67a1539
parente07d9fa2d682e3e16f92a71e623ed87dbdbb4d91 (diff)
downloadglibmm-f6fb5555f0f00bedf1927b2047e5a724ccf18295.tar.gz
FileInfo: set_attribute_strings(): Const correction.
* gio/src/fileinfo.hg: Pass the attr_value vector as a const std::vector<>& and not just a std::vecto<>&. I must not have been paying attention to what I was doing when wrapping this.
-rw-r--r--ChangeLog8
-rw-r--r--gio/src/fileinfo.hg4
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e1ff9d2..427ab170 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-10-08 José Alburquerque <jaalburquerque@gmail.com>
+
+ FileInfo: set_attribute_strings(): Const correction.
+
+ * gio/src/fileinfo.hg: Pass the attr_value vector as a const
+ std::vector<>& and not just a std::vecto<>&. I must not have been
+ paying attention to what I was doing when wrapping this.
+
2012-10-07 Murray Cumming <murrayc@murrayc.com>
Require the latest mm-common.
diff --git a/gio/src/fileinfo.hg b/gio/src/fileinfo.hg
index 4bc3b95f..f587e8ed 100644
--- a/gio/src/fileinfo.hg
+++ b/gio/src/fileinfo.hg
@@ -138,8 +138,8 @@ public:
_WRAP_METHOD(void set_attribute_string(const std::string& attribute, const std::string& value),
g_file_info_set_attribute_string)
-#m4 _CONVERSION(`std::vector<Glib::ustring>&',`char**',`const_cast<char**>(Glib::ArrayHandler<Glib::ustring>::vector_to_array($3).data())')
- _WRAP_METHOD(void set_attribute_strings(const std::string& attribute, std::vector<Glib::ustring>& attr_value), g_file_info_set_attribute_stringv)
+#m4 _CONVERSION(`const std::vector<Glib::ustring>&',`char**',`const_cast<char**>(Glib::ArrayHandler<Glib::ustring>::vector_to_array($3).data())')
+ _WRAP_METHOD(void set_attribute_strings(const std::string& attribute, const std::vector<Glib::ustring>& attr_value), g_file_info_set_attribute_stringv)
_WRAP_METHOD(void set_attribute_byte_string(const std::string& attribute, const std::string& value),
g_file_info_set_attribute_byte_string)