diff --git a/tom/include/tom/tomconstants_extern.hpp b/tom/include/tom/tomconstants_extern.hpp index efb81c82c..7ea602a6d 100644 --- a/tom/include/tom/tomconstants_extern.hpp +++ b/tom/include/tom/tomconstants_extern.hpp @@ -95,7 +95,7 @@ namespace Tom::Constants SHAREDLIB_EXPORT extern const QString only_up; // complete SHAREDLIB_EXPORT extern const QString commandline; - SHAREDLIB_EXPORT extern const QString position; + SHAREDLIB_EXPORT extern const QString position_; SHAREDLIB_EXPORT extern const QString word_; SHAREDLIB_EXPORT extern const QString cword_; // list diff --git a/tom/include/tom/tomconstants_inline.hpp b/tom/include/tom/tomconstants_inline.hpp index 4b90ae7b3..4958d1a22 100644 --- a/tom/include/tom/tomconstants_inline.hpp +++ b/tom/include/tom/tomconstants_inline.hpp @@ -94,7 +94,7 @@ namespace Tom::Constants inline const QString only_up = QStringLiteral("ONLY"); // complete inline const QString commandline = QStringLiteral("commandline"); - inline const QString position = QStringLiteral("position"); + inline const QString position_ = QStringLiteral("position"); inline const QString word_ = QStringLiteral("word"); inline const QString cword_ = QStringLiteral("cword"); // list diff --git a/tom/src/tom/commands/completecommand.cpp b/tom/src/tom/commands/completecommand.cpp index 97c2fb488..a5fe3e19e 100644 --- a/tom/src/tom/commands/completecommand.cpp +++ b/tom/src/tom/commands/completecommand.cpp @@ -45,7 +45,7 @@ using Tom::Constants::word_up; #ifdef _MSC_VER using Tom::Constants::LongOptionValue; -using Tom::Constants::position; +using Tom::Constants::position_; using Tom::Constants::position_up; #else using Tom::Constants::ShBash; @@ -74,7 +74,7 @@ QList CompleteCommand::optionsSignature() const {word_, sl("The current word that is being completed"), word_up}, {commandline, sl("The entire current command-line"), commandline_up}, #ifdef _MSC_VER - {position, sl("The current position of the cursor on the command-line"), + {position_, sl("The current position of the cursor on the command-line"), position_up, sl("0")}, #else {cword_, sl("Position of the current word on the command-line that is " @@ -93,7 +93,7 @@ int CompleteCommand::run() // NOLINT(readability-function-cognitive-complexity) #ifdef _MSC_VER const auto positionArg = static_cast( - value(position).toLongLong()); + value(position_).toLongLong()); const auto commandlineArgSize = commandlineArg.size(); diff --git a/tom/src/tom/tomconstants_extern.cpp b/tom/src/tom/tomconstants_extern.cpp index 9addac3ee..2bb9a4d05 100644 --- a/tom/src/tom/tomconstants_extern.cpp +++ b/tom/src/tom/tomconstants_extern.cpp @@ -83,7 +83,7 @@ namespace Tom::Constants const QString only_up = QStringLiteral("ONLY"); // complete const QString commandline = QStringLiteral("commandline"); - const QString position = QStringLiteral("position"); + const QString position_ = QStringLiteral("position"); const QString word_ = QStringLiteral("word"); const QString cword_ = QStringLiteral("cword"); // list