diff --git a/Source/UI/Shortcuts/ShortcutDetails.cpp b/Source/UI/Shortcuts/ShortcutDetails.cpp index 46cd27ed..9229e4f3 100644 --- a/Source/UI/Shortcuts/ShortcutDetails.cpp +++ b/Source/UI/Shortcuts/ShortcutDetails.cpp @@ -6,6 +6,7 @@ #include "UI/Window/WindowRetirement.h" namespace { + // INLINED void ToScreen(const UIWindow& window, int& x, int& y) { x = (x + window.geometry.x); y = (y + window.geometry.y); diff --git a/Source/UI/Shortcuts/ShortcutDrop.cpp b/Source/UI/Shortcuts/ShortcutDrop.cpp index 8fbf3131..41830d06 100644 --- a/Source/UI/Shortcuts/ShortcutDrop.cpp +++ b/Source/UI/Shortcuts/ShortcutDrop.cpp @@ -9,6 +9,7 @@ #include namespace { + // INLINED bool Grouped(std::uint32_t id) { return id - 8000u <= 60 || id - 8200u <= 41 || id - 8400u <= 57; } diff --git a/Source/UI/Shortcuts/ShortcutTooltip.cpp b/Source/UI/Shortcuts/ShortcutTooltip.cpp index 70c2dbc8..27741eba 100644 --- a/Source/UI/Shortcuts/ShortcutTooltip.cpp +++ b/Source/UI/Shortcuts/ShortcutTooltip.cpp @@ -3,9 +3,10 @@ #include "UI/Buttons/UIButton.h" #include "UI/Window/UIWindow.h" -#include +#include namespace { + // INLINED void ToScreen(const UIWindow& window, int& x, int& y) { x = (x + window.geometry.x); y = (y + window.geometry.y); diff --git a/Source/UI/Text/TextMarkup.cpp b/Source/UI/Text/TextMarkup.cpp index 8fba8eb9..47f74821 100644 --- a/Source/UI/Text/TextMarkup.cpp +++ b/Source/UI/Text/TextMarkup.cpp @@ -3,10 +3,12 @@ #include namespace { + // INLINED bool Hex(unsigned char value) { return (value >= '0' && value <= '9') || (value >= 'a' && value <= 'f') || (value >= 'A' && value <= 'F'); } + // INLINED bool Color(const char* text, const char* end) { if (*text != '^' || end - text < 6) { return false; diff --git a/Source/UI/Text/UITextViewer.cpp b/Source/UI/Text/UITextViewer.cpp index 053f93e2..e0bea965 100644 --- a/Source/UI/Text/UITextViewer.cpp +++ b/Source/UI/Text/UITextViewer.cpp @@ -12,6 +12,7 @@ #include namespace { + // INLINED unsigned Digit(unsigned char value) { if (value >= '0' && value <= '9') { return value - '0'; @@ -28,6 +29,7 @@ namespace { return 0; } + // INLINED void ScanColors(const std::string& line, unsigned short codePage, std::uint32_t& color) { const char* current = line.c_str(); const char* end = current + line.size();