[glibmm] FileInfo: set_attribute_strings(): Const correction.



commit f6fb5555f0f00bedf1927b2047e5a724ccf18295
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date:   Mon Oct 8 23:09:46 2012 -0400

    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.

 ChangeLog           |    8 ++++++++
 gio/src/fileinfo.hg |    4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5e1ff9d..427ab17 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 4bc3b95..f587e8e 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]