FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Don't call static methods through an instance. NFC. · solvespace/solvespace@34dccbf · GitHub

Commit 34dccbf

Browse files
authored andcommitted
Don't call static methods through an instance. NFC.
Found by clang-tidy.
1 parent 219df31 commit 34dccbf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/exportvector.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class DxfWriteInterface : public DRW_Interface {
325325

326326
void assignEntityDefaults(DRW_Entity *entity, hStyle hs) {
327327
Style *s = Style::Get(hs);
328-
RgbaColor color = s->Color(hs, /*forExport=*/true);
328+
RgbaColor color = Style::Color(hs, /*forExport=*/true);
329329
entity->color24 = color.ToPackedIntBGRA();
330330
entity->color = findDxfColor(color);
331331
entity->layer = s->DescriptionString();

‎src/platform/guigtk.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,11 +1471,11 @@ void InitGui(int argc, char **argv) {
14711471
}
14721472

14731473
void RunGui() {
1474-
gtkMain->run();
1474+
Gtk::Main::run();
14751475
}
14761476

14771477
void ExitGui() {
1478-
gtkMain->quit();
1478+
Gtk::Main::quit();
14791479
}
14801480

14811481
void ClearGui() {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL