summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2012-12-25 23:33:53 -0600
committerGlenn Rice <glennricster@gmail.com>2012-12-25 23:33:53 -0600
commitff10ccfba6e75ead72f6dce1f28c7d87c6781634 (patch)
tree4bc3668b5f5af6ab5cd5e0eb5bb46b28c88b22d2
parent5ecdb97be8bd04778c267116b59fe79967288bed (diff)
Make methods that modify underlying c objects non const.
-rw-r--r--examples/demo/layers.cc2
-rw-r--r--examples/demo/layers.h2
-rw-r--r--examples/demo/outline.cc2
-rw-r--r--examples/demo/outline.h2
-rw-r--r--poppler-glib/src/annot.hg18
-rw-r--r--poppler-glib/src/fonts_iter.hg2
-rw-r--r--poppler-glib/src/form_field.hg12
-rw-r--r--poppler-glib/src/index_iter.hg2
-rw-r--r--poppler-glib/src/layer.hg4
-rw-r--r--poppler-glib/src/layers_iter.hg2
-rw-r--r--poppler-glib/src/ps_file.hg4
11 files changed, 26 insertions, 26 deletions
diff --git a/examples/demo/layers.cc b/examples/demo/layers.cc
index 38a0900..14221c5 100644
--- a/examples/demo/layers.cc
+++ b/examples/demo/layers.cc
@@ -146,7 +146,7 @@ Layers::Layers(const Glib::RefPtr<Poppler::Document>& document) :
show_all();
}
-void Layers::build_tree(const Gtk::TreeModel::Children& parent, const Poppler::LayersIter &iter)
+void Layers::build_tree(const Gtk::TreeModel::Children& parent, Poppler::LayersIter& iter)
{
do
{
diff --git a/examples/demo/layers.h b/examples/demo/layers.h
index 82c420e..df02ad6 100644
--- a/examples/demo/layers.h
+++ b/examples/demo/layers.h
@@ -61,7 +61,7 @@ class Layers : public Gtk::Paned
Layers(const Glib::RefPtr<Poppler::Document>& document);
private:
- void build_tree(const Gtk::TreeModel::Children& parent, const Poppler::LayersIter &iter);
+ void build_tree(const Gtk::TreeModel::Children& parent, Poppler::LayersIter& iter);
void selection_changed();
void visibility_changed(const Glib::ustring& path);
bool clear_rb_group(const Gtk::TreeIter& iter, int rb_group);
diff --git a/examples/demo/outline.cc b/examples/demo/outline.cc
index 1b7ba10..9f8623b 100644
--- a/examples/demo/outline.cc
+++ b/examples/demo/outline.cc
@@ -74,7 +74,7 @@ Outline::Outline(const Glib::RefPtr<Poppler::Document>& document) :
show_all();
}
-void Outline::build_tree(const Gtk::TreeModel::Children& parent, const Poppler::IndexIter &iter)
+void Outline::build_tree(const Gtk::TreeModel::Children& parent, Poppler::IndexIter& iter)
{
do
{
diff --git a/examples/demo/outline.h b/examples/demo/outline.h
index d8ecc18..7ff8636 100644
--- a/examples/demo/outline.h
+++ b/examples/demo/outline.h
@@ -37,7 +37,7 @@ class Outline : public Gtk::Paned
Outline(const Glib::RefPtr<Poppler::Document>& document);
private:
- void build_tree(const Gtk::TreeModel::Children& parent, const Poppler::IndexIter &iter);
+ void build_tree(const Gtk::TreeModel::Children& parent, Poppler::IndexIter& iter);
void expand_open_links(const Gtk::TreeModel::Children& parent);
void selection_changed();
diff --git a/poppler-glib/src/annot.hg b/poppler-glib/src/annot.hg
index 161c7db..f90aa48 100644
--- a/poppler-glib/src/annot.hg
+++ b/poppler-glib/src/annot.hg
@@ -52,13 +52,13 @@ class Annot : public Glib::Object
public:
_WRAP_METHOD(AnnotType get_annot_type() const, poppler_annot_get_annot_type)
_WRAP_METHOD(AnnotFlag get_flags() const, poppler_annot_get_flags)
- _WRAP_METHOD(void set_flags(AnnotFlag flags) const, poppler_annot_set_flags)
+ _WRAP_METHOD(void set_flags(AnnotFlag flags), poppler_annot_set_flags)
_WRAP_METHOD(Glib::ustring get_name() const, poppler_annot_get_name)
_WRAP_METHOD(int get_page_index() const, poppler_annot_get_page_index)
_WRAP_METHOD(Color get_color() const, poppler_annot_get_color)
- _WRAP_METHOD(void set_color(const Color& color) const, poppler_annot_set_color)
+ _WRAP_METHOD(void set_color(const Color& color), poppler_annot_set_color)
_WRAP_METHOD(Glib::ustring get_contents() const, poppler_annot_get_contents)
- _WRAP_METHOD(void set_contents(const Glib::ustring& contents) const, poppler_annot_set_contents)
+ _WRAP_METHOD(void set_contents(const Glib::ustring& contents), poppler_annot_set_contents)
_WRAP_METHOD(Glib::ustring get_modified() const, poppler_annot_get_modified)
};
@@ -73,14 +73,14 @@ class AnnotMarkup : public Annot
public:
_WRAP_METHOD(Glib::ustring get_label() const, poppler_annot_markup_get_label)
- _WRAP_METHOD(void set_label(const Glib::ustring& label) const, poppler_annot_markup_set_label)
+ _WRAP_METHOD(void set_label(const Glib::ustring& label), poppler_annot_markup_set_label)
_WRAP_METHOD(Glib::ustring get_subject() const, poppler_annot_markup_get_subject)
_WRAP_METHOD(double get_opacity() const, poppler_annot_markup_get_opacity)
- _WRAP_METHOD(void set_opacity(double opacity) const, poppler_annot_markup_set_opacity)
+ _WRAP_METHOD(void set_opacity(double opacity), poppler_annot_markup_set_opacity)
_WRAP_METHOD(bool has_popup() const, poppler_annot_markup_has_popup)
- _WRAP_METHOD(void set_popup(const Rectangle& popup_rect) const, poppler_annot_markup_set_popup)
+ _WRAP_METHOD(void set_popup(const Rectangle& popup_rect), poppler_annot_markup_set_popup)
_WRAP_METHOD(bool get_popup_is_open() const, poppler_annot_markup_get_popup_is_open)
- _WRAP_METHOD(void set_popup_is_open(bool is_open = true) const, poppler_annot_markup_set_popup_is_open)
+ _WRAP_METHOD(void set_popup_is_open(bool is_open = true), poppler_annot_markup_set_popup_is_open)
_WRAP_METHOD(void get_popup_rectangle(Rectangle& popup_rect) const, poppler_annot_markup_get_popup_rectangle)
_WRAP_METHOD_DOCS_ONLY(poppler_annot_markup_get_date)
@@ -111,9 +111,9 @@ class AnnotText : public AnnotMarkup
_WRAP_CREATE(const Glib::RefPtr<Document>& document, const Rectangle& rect)
_WRAP_METHOD(Glib::ustring get_icon() const, poppler_annot_text_get_icon)
- _WRAP_METHOD(void set_icon(const Glib::ustring& icon) const, poppler_annot_text_set_icon)
+ _WRAP_METHOD(void set_icon(const Glib::ustring& icon), poppler_annot_text_set_icon)
_WRAP_METHOD(bool get_is_open() const, poppler_annot_text_get_is_open)
- _WRAP_METHOD(void set_is_open(bool is_open = true) const, poppler_annot_text_set_is_open)
+ _WRAP_METHOD(void set_is_open(bool is_open = true), poppler_annot_text_set_is_open)
_WRAP_METHOD(AnnotTextState get_state() const, poppler_annot_text_get_state)
};
diff --git a/poppler-glib/src/fonts_iter.hg b/poppler-glib/src/fonts_iter.hg
index 124ef17..1a8e9b4 100644
--- a/poppler-glib/src/fonts_iter.hg
+++ b/poppler-glib/src/fonts_iter.hg
@@ -38,7 +38,7 @@ class FontsIter
_WRAP_METHOD(Glib::ustring get_file_name() const, poppler_fonts_iter_get_file_name)
_WRAP_METHOD(bool is_embedded() const, poppler_fonts_iter_is_embedded)
_WRAP_METHOD(bool is_subset() const, poppler_fonts_iter_is_subset)
- _WRAP_METHOD(bool next() const, poppler_fonts_iter_next)
+ _WRAP_METHOD(bool next(), poppler_fonts_iter_next)
_WRAP_METHOD(Glib::ustring get_substitute_name() const, poppler_fonts_iter_get_substitute_name)
_WRAP_METHOD(Glib::ustring get_encoding() const, poppler_fonts_iter_get_encoding)
diff --git a/poppler-glib/src/form_field.hg b/poppler-glib/src/form_field.hg
index e38d420..d4ec230 100644
--- a/poppler-glib/src/form_field.hg
+++ b/poppler-glib/src/form_field.hg
@@ -52,7 +52,7 @@ class FormField : public Glib::Object
_WRAP_METHOD(FormButtonType button_get_button_type() const, poppler_form_field_button_get_button_type)
_WRAP_METHOD(bool button_get_state() const, poppler_form_field_button_get_state)
- _WRAP_METHOD(void button_set_state(bool state) const, poppler_form_field_button_set_state)
+ _WRAP_METHOD(void button_set_state(bool state), poppler_form_field_button_set_state)
_WRAP_METHOD(FormChoiceType choice_get_choice_type() const, poppler_form_field_choice_get_choice_type)
_WRAP_METHOD(bool choice_can_select_multiple() const, poppler_form_field_choice_can_select_multiple)
@@ -61,16 +61,16 @@ class FormField : public Glib::Object
_WRAP_METHOD(Glib::ustring choice_get_item(int index) const, poppler_form_field_choice_get_item)
_WRAP_METHOD(int choice_get_n_items() const, poppler_form_field_choice_get_n_items)
_WRAP_METHOD(Glib::ustring choice_get_text() const, poppler_form_field_choice_get_text)
- _WRAP_METHOD(void choice_set_text(const Glib::ustring& text) const, poppler_form_field_choice_set_text)
+ _WRAP_METHOD(void choice_set_text(const Glib::ustring& text), poppler_form_field_choice_set_text)
_WRAP_METHOD(bool choice_is_editable() const, poppler_form_field_choice_is_editable)
_WRAP_METHOD(bool choice_is_item_selected(int index) const, poppler_form_field_choice_is_item_selected)
- _WRAP_METHOD(void choice_select_item(int index) const, poppler_form_field_choice_select_item)
- _WRAP_METHOD(void choice_toggle_item(int index) const, poppler_form_field_choice_toggle_item)
- _WRAP_METHOD(void choice_unselect_all() const, poppler_form_field_choice_unselect_all)
+ _WRAP_METHOD(void choice_select_item(int index), poppler_form_field_choice_select_item)
+ _WRAP_METHOD(void choice_toggle_item(int index), poppler_form_field_choice_toggle_item)
+ _WRAP_METHOD(void choice_unselect_all(), poppler_form_field_choice_unselect_all)
_WRAP_METHOD(FormTextType text_get_text_type() const, poppler_form_field_text_get_text_type)
_WRAP_METHOD(Glib::ustring text_get_text() const, poppler_form_field_text_get_text)
- _WRAP_METHOD(void text_set_text(const Glib::ustring& text) const, poppler_form_field_text_set_text)
+ _WRAP_METHOD(void text_set_text(const Glib::ustring& text), poppler_form_field_text_set_text)
_WRAP_METHOD(int text_get_max_len() const, poppler_form_field_text_get_max_len)
_WRAP_METHOD(bool text_do_scroll() const, poppler_form_field_text_do_scroll)
_WRAP_METHOD(bool text_do_spell_check() const, poppler_form_field_text_do_spell_check)
diff --git a/poppler-glib/src/index_iter.hg b/poppler-glib/src/index_iter.hg
index 086c805..9a88166 100644
--- a/poppler-glib/src/index_iter.hg
+++ b/poppler-glib/src/index_iter.hg
@@ -60,7 +60,7 @@ class IndexIter
_WRAP_METHOD(IndexIter get_child() const, poppler_index_iter_get_child)
_WRAP_METHOD(bool is_open() const, poppler_index_iter_is_open)
_WRAP_METHOD(Action get_action() const, poppler_index_iter_get_action)
- _WRAP_METHOD(bool next() const, poppler_index_iter_next)
+ _WRAP_METHOD(bool next(), poppler_index_iter_next)
/** This typedef is just to make it more obvious that
* our operator const void* should be used like operator bool().
diff --git a/poppler-glib/src/layer.hg b/poppler-glib/src/layer.hg
index 5aebdfe..8ab4c38 100644
--- a/poppler-glib/src/layer.hg
+++ b/poppler-glib/src/layer.hg
@@ -35,8 +35,8 @@ class Layer : public Glib::Object
public:
_WRAP_METHOD(Glib::ustring get_title() const, poppler_layer_get_title)
_WRAP_METHOD(bool is_visible() const, poppler_layer_is_visible)
- _WRAP_METHOD(void show() const, poppler_layer_show)
- _WRAP_METHOD(void hide() const, poppler_layer_hide)
+ _WRAP_METHOD(void show(), poppler_layer_show)
+ _WRAP_METHOD(void hide(), poppler_layer_hide)
_WRAP_METHOD(bool is_parent() const, poppler_layer_is_parent)
_WRAP_METHOD(int get_radio_button_group_id() const, poppler_layer_get_radio_button_group_id)
};
diff --git a/poppler-glib/src/layers_iter.hg b/poppler-glib/src/layers_iter.hg
index bc44be0..610daa9 100644
--- a/poppler-glib/src/layers_iter.hg
+++ b/poppler-glib/src/layers_iter.hg
@@ -34,7 +34,7 @@ class LayersIter
_WRAP_METHOD(LayersIter get_child() const, poppler_layers_iter_get_child)
_WRAP_METHOD(Glib::RefPtr<Layer> get_layer() const, poppler_layers_iter_get_layer)
_WRAP_METHOD(Glib::ustring get_title() const, poppler_layers_iter_get_title)
- _WRAP_METHOD(bool next() const, poppler_layers_iter_next)
+ _WRAP_METHOD(bool next(), poppler_layers_iter_next)
/** This typedef is just to make it more obvious that
* our operator const void* should be used like operator bool().
diff --git a/poppler-glib/src/ps_file.hg b/poppler-glib/src/ps_file.hg
index 855afca..670ff1a 100644
--- a/poppler-glib/src/ps_file.hg
+++ b/poppler-glib/src/ps_file.hg
@@ -33,8 +33,8 @@ class PSFile : public Glib::Object
_CTOR_DEFAULT
public:
- _WRAP_METHOD(void set_paper_size(double width, double height) const, poppler_ps_file_set_paper_size)
- _WRAP_METHOD(void set_duplex(bool duplex) const, poppler_ps_file_set_duplex)
+ _WRAP_METHOD(void set_paper_size(double width, double height), poppler_ps_file_set_paper_size)
+ _WRAP_METHOD(void set_duplex(bool duplex), poppler_ps_file_set_duplex)
_IGNORE(poppler_ps_file_free)
};