[gtksourceviewmm] Buffer: get_implicit_trailing_newline(): Make this const.



commit 10d69de3f74e55fb5a2a2b428947c9dc1921dbfc
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Aug 3 11:52:05 2016 +0200

    Buffer: get_implicit_trailing_newline(): Make this const.

 gtksourceview/src/buffer.hg |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/src/buffer.hg b/gtksourceview/src/buffer.hg
index d5dc126..6abd9f1 100644
--- a/gtksourceview/src/buffer.hg
+++ b/gtksourceview/src/buffer.hg
@@ -313,6 +313,7 @@ public:
 #m4 _CONVERSION(`GSList*',`std::vector<Glib::RefPtr<Gsv::Mark> >', 
`Glib::SListHandler<Glib::RefPtr<Gsv::Mark> >::slist_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
 #m4 _CONVERSION(`GSList*',`std::vector<Glib::RefPtr<const Gsv::Mark> >', 
`Glib::SListHandler<Glib::RefPtr<const Gsv::Mark> >slist_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
 
+  //TODO: const and non-const version?
   /** Returns the list of marks of the given @a category at @a line.
    *
    * @param line A line number.
@@ -528,7 +529,7 @@ public:
    *
    * @newin{3,14}
    */
-  _WRAP_METHOD(bool get_implicit_trailing_newline(), gtk_source_buffer_get_implicit_trailing_newline)
+  _WRAP_METHOD(bool get_implicit_trailing_newline() const, gtk_source_buffer_get_implicit_trailing_newline)
 
   _WRAP_PROPERTY("implicit-trailing-newline", bool)
 };


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