diff options
Diffstat (limited to 'Source/cmIncludeRegularExpressionCommand.cxx')
-rw-r--r-- | Source/cmIncludeRegularExpressionCommand.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/cmIncludeRegularExpressionCommand.cxx b/Source/cmIncludeRegularExpressionCommand.cxx index d6dfdd2..2473dff 100644 --- a/Source/cmIncludeRegularExpressionCommand.cxx +++ b/Source/cmIncludeRegularExpressionCommand.cxx @@ -12,21 +12,18 @@ #include "cmIncludeRegularExpressionCommand.h" // cmIncludeRegularExpressionCommand -bool cmIncludeRegularExpressionCommand -::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) +bool cmIncludeRegularExpressionCommand::InitialPass( + std::vector<std::string> const& args, cmExecutionStatus&) { - if((args.size() < 1) || (args.size() > 2)) - { + if ((args.size() < 1) || (args.size() > 2)) { this->SetError("called with incorrect number of arguments"); return false; - } + } this->Makefile->SetIncludeRegularExpression(args[0].c_str()); - if(args.size() > 1) - { + if (args.size() > 1) { this->Makefile->SetComplainRegularExpression(args[1]); - } + } return true; } - |