mirror of
https://github.com/silverqx/TinyORM.git
synced 2025-12-30 07:19:34 -06:00
tom renamed constant to position_
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user