[LyX/master] Remove an unused variable

Scott Kostyshak <[email protected]> Fri, 12 Jun 2026 19:19:28 +0000
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit dbf54d6a4e5076501cd450e271b99f3b91fb9bee
Author: Scott Kostyshak <[email protected]>
Date:   Fri Jun 12 21:16:32 2026 +0200

    Remove an unused variable
    
    Addresses the following warning:
    
    src/frontends/qt/GuiInputMethod.cpp:341:39: error: unused variable 'focus_style' [-Werror,-Wunused-variable]
      341 |         const QInputMethodEvent::Attribute * focus_style = nullptr;
          |                                              ^~~~~~~~~~~
    
    Amends 1a01d6c0.
---
 src/frontends/qt/GuiInputMethod.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/frontends/qt/GuiInputMethod.cpp b/src/frontends/qt/GuiInputMethod.cpp
index 61c42c688f..c9e02e4441 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -338,8 +338,6 @@ void GuiInputMethod::setPreeditStyle(
 {
 	d->style_.segments_.clear();
 
-	const QInputMethodEvent::Attribute * focus_style = nullptr;
-
 #if defined(Q_OS_MACOS) && QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
 	d->initial_tf_entry_ = true;
 #endif
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs