From 9fd02d79a0d13b10e2a73b3f2f63c39e1e83ef4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fa=20Oru=C3=A7?= <25724155+aeris170@users.noreply.github.com> Date: Sat, 11 Oct 2025 06:04:12 +0100 Subject: [PATCH] Fix C4267 by moving implementation to .cpp file --- TextEditor.cpp | 2 ++ TextEditor.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TextEditor.cpp b/TextEditor.cpp index 1cc3e108..af14cc11 100644 --- a/TextEditor.cpp +++ b/TextEditor.cpp @@ -30,6 +30,8 @@ TextEditor::~TextEditor() { } +int TextEditor::GetLineCount() const { return mLines.size(); } + void TextEditor::SetPalette(PaletteId aValue) { mPaletteId = aValue; diff --git a/TextEditor.h b/TextEditor.h index 19ad61bd..0f8c074d 100644 --- a/TextEditor.h +++ b/TextEditor.h @@ -43,7 +43,7 @@ class IMGUI_API TextEditor inline bool IsShowLineNumbersEnabled() const { return mShowLineNumbers; } inline void SetShortTabsEnabled(bool aValue) { mShortTabs = aValue; } inline bool IsShortTabsEnabled() const { return mShortTabs; } - inline int GetLineCount() const { return mLines.size(); } + int GetLineCount() const; void SetPalette(PaletteId aValue); PaletteId GetPalette() const { return mPaletteId; } void SetLanguageDefinition(LanguageDefinitionId aValue);