From 8b6d6eecfdb1fba58b1a0ddce161b7bf03e054c6 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 2 Dec 2011 22:27:14 +0000 Subject: [PATCH] Remove unused optional argument. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40337 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiCompleter.cpp | 6 +++--- src/frontends/qt4/GuiCompleter.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiCompleter.cpp b/src/frontends/qt4/GuiCompleter.cpp index ff81d88399..4e9f9eaa5d 100644 --- a/src/frontends/qt4/GuiCompleter.cpp +++ b/src/frontends/qt4/GuiCompleter.cpp @@ -285,15 +285,15 @@ bool GuiCompleter::inlineVisible() const } -void GuiCompleter::updateVisibility(Cursor & cur, bool start, bool keep, bool cursorInView) +void GuiCompleter::updateVisibility(Cursor & cur, bool start, bool keep) { // parameters which affect the completion bool moved = cur != old_cursor_; if (moved) old_cursor_ = cur; - bool possiblePopupState = popupPossible(cur) && cursorInView; - bool possibleInlineState = inlinePossible(cur) && cursorInView; + bool const possiblePopupState = popupPossible(cur); + bool const possibleInlineState = inlinePossible(cur); // we moved or popup state is not ok for popup? if ((moved && !keep) || !possiblePopupState) diff --git a/src/frontends/qt4/GuiCompleter.h b/src/frontends/qt4/GuiCompleter.h index f5986359de..5900f7c08c 100644 --- a/src/frontends/qt4/GuiCompleter.h +++ b/src/frontends/qt4/GuiCompleter.h @@ -61,7 +61,7 @@ public: /// Update the visibility of the popup and the inline completion. /// This method might set the update flags of the cursor to request /// a redraw. - void updateVisibility(Cursor & cur, bool start, bool keep, bool cursorInView = true); + void updateVisibility(Cursor & cur, bool start, bool keep); /// Update the visibility of the popup and the inline completion. /// This method handles the redraw if needed. void updateVisibility(bool start, bool keep); -- 2.39.2