Skip to content

Commit

Permalink
formatting(citicore/console): spaces instead of tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Mycroft-Studios committed Jan 10, 2025
1 parent ad7e2d2 commit 2ad5d20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion code/client/citicore/console/Console.Commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void ConsoleCommandManager::Invoke(const std::string& commandString, const std::
return;
}

std::string command = arguments.Shift();
std::string command = arguments.Shift();

m_rawCommand = commandString;

Expand Down
14 changes: 8 additions & 6 deletions code/client/citicore/console/Console.Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct ConsoleExecutionContext
std::string contextRef;

inline ConsoleExecutionContext(const ProgramArguments&& arguments, const std::string& contextRef)
: arguments(arguments), contextRef(contextRef)
: arguments(arguments), contextRef(contextRef)
{
}
};
Expand Down Expand Up @@ -157,11 +157,12 @@ class ConsoleCommandManager
template <typename TArgument, typename TConstraint = void>
struct ConsoleArgumentTraits
{
using Less = std::less<TArgument>;
using Less = std::less<TArgument>;
using Greater = std::greater<TArgument>;
using Equal = std::equal_to<TArgument>;
using Equal = std::equal_to<TArgument>;
};


template <typename TArgument, typename TConstraint = void>
struct ConsoleArgumentName
{
Expand Down Expand Up @@ -313,6 +314,7 @@ class ExternalContext : public std::any
ExternalContext(const std::any& any)
: std::any(any)
{

}
};
#else
Expand Down Expand Up @@ -431,9 +433,9 @@ struct ConsoleCommandFunction<std::function<void(Args...)>>
if (ParseArgument(context, ArgIterator, &argument))
{
return CallInternal<Iterator + 1, AddOneArg<ArgType, ArgIterator>>(
func,
context,
std::tuple_cat(std::move(tuple), std::forward_as_tuple(std::forward<ArgType>(argument))));
func,
context,
std::tuple_cat(std::move(tuple), std::forward_as_tuple(std::forward<ArgType>(argument))));
}

context.errorBuffer << "Could not convert argument " << std::to_string(Iterator) << " (" << context.arguments[Iterator] << ") to " << typeid(ArgType).name() << std::endl;
Expand Down

0 comments on commit 2ad5d20

Please sign in to comment.