summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2021-03-26 11:06:20 (GMT)
committerCraig Scott <craig.scott@crascit.com>2021-03-26 11:17:57 (GMT)
commit900184616afd01cf44115f1db777e05d97776306 (patch)
tree8b11257f04b7c867ea6dd0a097fe59e038949a5b /Source/cmFileCommand.cxx
parent635431a0c9696c8c8be5d94e6afdc044afd5384c (diff)
downloadCMake-900184616afd01cf44115f1db777e05d97776306.zip
CMake-900184616afd01cf44115f1db777e05d97776306.tar.gz
CMake-900184616afd01cf44115f1db777e05d97776306.tar.bz2
Cleanup: Fix misspelt name of local C++ variable
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index f674833..4a28238 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -2446,18 +2446,18 @@ bool HandleGenerateCommand(std::vector<std::string> const& args,
}
}
- mode_t permisiions = 0;
+ mode_t permissions = 0;
if (arguments.NoSourcePermissions) {
- permisiions |= cmFSPermissions::mode_owner_read;
- permisiions |= cmFSPermissions::mode_owner_write;
- permisiions |= cmFSPermissions::mode_group_read;
- permisiions |= cmFSPermissions::mode_world_read;
+ permissions |= cmFSPermissions::mode_owner_read;
+ permissions |= cmFSPermissions::mode_owner_write;
+ permissions |= cmFSPermissions::mode_group_read;
+ permissions |= cmFSPermissions::mode_world_read;
}
if (!arguments.FilePermissions.empty()) {
std::vector<std::string> invalidOptions;
for (auto const& e : arguments.FilePermissions) {
- if (!cmFSPermissions::stringToModeT(e, permisiions)) {
+ if (!cmFSPermissions::stringToModeT(e, permissions)) {
invalidOptions.push_back(e);
}
}
@@ -2479,7 +2479,7 @@ bool HandleGenerateCommand(std::vector<std::string> const& args,
AddEvaluationFile(input, arguments.Target, arguments.Output,
arguments.Condition, inputIsContent,
- newLineStyle.GetCharacters(), permisiions, status);
+ newLineStyle.GetCharacters(), permissions, status);
return true;
}