Skip to content

Commit 34af615

Browse files
committed
training: Remove unnecessary const qualifiers
This fixes several gcc warnings: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 4b6e7af commit 34af615

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

training/pango_font_info.h

+9-9
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ class PangoFontInfo {
9393
// Font Family name eg. "Arial"
9494
const string& family_name() const { return family_name_; }
9595
// Size in points (1/72"), rounded to the nearest integer.
96-
const int font_size() const { return font_size_; }
97-
const bool is_bold() const { return is_bold_; }
98-
const bool is_italic() const { return is_italic_; }
99-
const bool is_smallcaps() const { return is_smallcaps_; }
100-
const bool is_monospace() const { return is_monospace_; }
101-
const bool is_fraktur() const { return is_fraktur_; }
102-
const FontTypeEnum font_type() const { return font_type_; }
103-
104-
const int resolution() const { return resolution_; }
96+
int font_size() const { return font_size_; }
97+
bool is_bold() const { return is_bold_; }
98+
bool is_italic() const { return is_italic_; }
99+
bool is_smallcaps() const { return is_smallcaps_; }
100+
bool is_monospace() const { return is_monospace_; }
101+
bool is_fraktur() const { return is_fraktur_; }
102+
FontTypeEnum font_type() const { return font_type_; }
103+
104+
int resolution() const { return resolution_; }
105105
void set_resolution(const int resolution) {
106106
resolution_ = resolution;
107107
}

training/stringrenderer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ class StringRenderer {
130130
const PangoFontInfo& font() const {
131131
return font_;
132132
}
133-
const int h_margin() const {
133+
int h_margin() const {
134134
return h_margin_;
135135
}
136-
const int v_margin() const {
136+
int v_margin() const {
137137
return v_margin_;
138138
}
139139

0 commit comments

Comments
 (0)