diff options
Diffstat (limited to 'Source/cmLocalVisualStudioGenerator.cxx')
| -rw-r--r-- | Source/cmLocalVisualStudioGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx index 2703c7b..58d46f1 100644 --- a/Source/cmLocalVisualStudioGenerator.cxx +++ b/Source/cmLocalVisualStudioGenerator.cxx @@ -4,6 +4,8 @@ #include <utility> +#include <cm/memory> + #include "windows.h" #include "cmCustomCommand.h" @@ -24,9 +26,7 @@ cmLocalVisualStudioGenerator::cmLocalVisualStudioGenerator( { } -cmLocalVisualStudioGenerator::~cmLocalVisualStudioGenerator() -{ -} +cmLocalVisualStudioGenerator::~cmLocalVisualStudioGenerator() = default; cmGlobalVisualStudioGenerator::VSVersion cmLocalVisualStudioGenerator::GetVersion() const @@ -107,7 +107,7 @@ cmLocalVisualStudioGenerator::MaybeCreateImplibDir(cmGeneratorTarget* target, // Add a pre-build event to create the directory. cmCustomCommandLines commands = cmMakeSingleCommandLine( { cmSystemTools::GetCMakeCommand(), "-E", "make_directory", impDir }); - pcc.reset(new cmCustomCommand()); + pcc = cm::make_unique<cmCustomCommand>(); pcc->SetCommandLines(commands); pcc->SetStdPipesUTF8(true); pcc->SetEscapeOldStyle(false); |
