tom renamed constant to position_

This commit is contained in:
silverqx
2023-08-12 15:07:48 +02:00
parent db80afb4d3
commit e64dde9e40
4 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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<CommandLineOption> 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<QString::size_type>(
value(position).toLongLong());
value(position_).toLongLong());
const auto commandlineArgSize = commandlineArg.size();

View File

@@ -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