diff options
author | David Robillard <d@drobilla.net> | 2011-05-13 02:57:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-13 02:57:36 +0000 |
commit | 198560d5fd499ab14eb4e130ee74e21fa86674a4 (patch) | |
tree | eb7bd2ae2d19b6db2c28c79d1c7663fe5b1f49de /src/gui/LoadPatchWindow.hpp | |
parent | 981c7950a6f5fc9f22decaee261556d20b641d5c (diff) | |
download | ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.gz ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.bz2 ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.zip |
Make models const in client code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3259 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/LoadPatchWindow.hpp')
-rw-r--r-- | src/gui/LoadPatchWindow.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/LoadPatchWindow.hpp b/src/gui/LoadPatchWindow.hpp index 66aebece..cc60ef80 100644 --- a/src/gui/LoadPatchWindow.hpp +++ b/src/gui/LoadPatchWindow.hpp @@ -42,9 +42,11 @@ class LoadPatchWindow : public Gtk::FileChooserDialog public: LoadPatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& xml); - void set_patch(SharedPtr<PatchModel> patch); + void set_patch(SharedPtr<const PatchModel> patch); - void present(SharedPtr<PatchModel> patch, bool import, GraphObject::Properties data); + void present(SharedPtr<const PatchModel> patch, + bool import, + GraphObject::Properties data); protected: void on_show(); @@ -62,7 +64,7 @@ private: GraphObject::Properties _initial_data; - SharedPtr<PatchModel> _patch; + SharedPtr<const PatchModel> _patch; Gtk::Label* _symbol_label; Gtk::Entry* _symbol_entry; |