Fix a few warnings emitted by Clang.
This commit is contained in:
parent
80c111bf75
commit
21d1a625e3
@ -776,7 +776,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool on_delete_event(GdkEventAny* gdk_event) {
|
bool on_delete_event(GdkEventAny* gdk_event) override {
|
||||||
if(_receiver->onClose) {
|
if(_receiver->onClose) {
|
||||||
_receiver->onClose();
|
_receiver->onClose();
|
||||||
return true;
|
return true;
|
||||||
@ -886,7 +886,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SetMinContentSize(double width, double height) override {
|
void SetMinContentSize(double width, double height) override {
|
||||||
gtkWindow.get_gl_widget().set_size_request(width, height);
|
gtkWindow.get_gl_widget().set_size_request((int)width, (int)height);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FreezePosition(SettingsRef settings, const std::string &key) override {
|
void FreezePosition(SettingsRef settings, const std::string &key) override {
|
||||||
@ -951,7 +951,7 @@ public:
|
|||||||
void ShowEditor(double x, double y, double fontHeight, double minWidth,
|
void ShowEditor(double x, double y, double fontHeight, double minWidth,
|
||||||
bool isMonospace, const std::string &text) override {
|
bool isMonospace, const std::string &text) override {
|
||||||
gtkWindow.get_editor_overlay().start_editing(
|
gtkWindow.get_editor_overlay().start_editing(
|
||||||
x, y, fontHeight, minWidth, isMonospace, text);
|
(int)x, (int)y, (int)fontHeight, (int)minWidth, isMonospace, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HideEditor() override {
|
void HideEditor() override {
|
||||||
|
Loading…
Reference in New Issue
Block a user