Don't call static methods through an instance. NFC.
Found by clang-tidy.pull/487/head
parent
219df31c53
commit
34dccbf935
|
@ -325,7 +325,7 @@ public:
|
||||||
|
|
||||||
void assignEntityDefaults(DRW_Entity *entity, hStyle hs) {
|
void assignEntityDefaults(DRW_Entity *entity, hStyle hs) {
|
||||||
Style *s = Style::Get(hs);
|
Style *s = Style::Get(hs);
|
||||||
RgbaColor color = s->Color(hs, /*forExport=*/true);
|
RgbaColor color = Style::Color(hs, /*forExport=*/true);
|
||||||
entity->color24 = color.ToPackedIntBGRA();
|
entity->color24 = color.ToPackedIntBGRA();
|
||||||
entity->color = findDxfColor(color);
|
entity->color = findDxfColor(color);
|
||||||
entity->layer = s->DescriptionString();
|
entity->layer = s->DescriptionString();
|
||||||
|
|
|
@ -1471,11 +1471,11 @@ void InitGui(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void RunGui() {
|
void RunGui() {
|
||||||
gtkMain->run();
|
Gtk::Main::run();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExitGui() {
|
void ExitGui() {
|
||||||
gtkMain->quit();
|
Gtk::Main::quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClearGui() {
|
void ClearGui() {
|
||||||
|
|
Loading…
Reference in New Issue