From 34dccbf935d6075727273c40ff07db24b29889fc Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 20 Aug 2019 14:42:38 -0500 Subject: [PATCH] Don't call static methods through an instance. NFC. Found by clang-tidy. --- src/exportvector.cpp | 2 +- src/platform/guigtk.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/exportvector.cpp b/src/exportvector.cpp index 4c67f06..4de45f5 100644 --- a/src/exportvector.cpp +++ b/src/exportvector.cpp @@ -325,7 +325,7 @@ public: void assignEntityDefaults(DRW_Entity *entity, hStyle 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->color = findDxfColor(color); entity->layer = s->DescriptionString(); diff --git a/src/platform/guigtk.cpp b/src/platform/guigtk.cpp index 2569b5f..84037bc 100644 --- a/src/platform/guigtk.cpp +++ b/src/platform/guigtk.cpp @@ -1471,11 +1471,11 @@ void InitGui(int argc, char **argv) { } void RunGui() { - gtkMain->run(); + Gtk::Main::run(); } void ExitGui() { - gtkMain->quit(); + Gtk::Main::quit(); } void ClearGui() {