Source sweep: Replace std::ostringstream when used with a single append
This replaces `std::ostringstream`, when it is written to only once. If the single written argument was numeric, `std::to_string` is used instead. Otherwise, the single written argument is used directly instead of the `std::ostringstream::str()` invocation.
Showing
- Source/CPack/cmCPackBundleGenerator.cxx 2 additions, 3 deletionsSource/CPack/cmCPackBundleGenerator.cxx
- Source/CTest/cmCTestBuildCommand.cxx 6 additions, 7 deletionsSource/CTest/cmCTestBuildCommand.cxx
- Source/CTest/cmCTestHandlerCommand.cxx 2 additions, 3 deletionsSource/CTest/cmCTestHandlerCommand.cxx
- Source/CTest/cmCTestMemCheckCommand.cxx 5 additions, 4 deletionsSource/CTest/cmCTestMemCheckCommand.cxx
- Source/CTest/cmCTestMemCheckHandler.cxx 1 addition, 4 deletionsSource/CTest/cmCTestMemCheckHandler.cxx
- Source/CTest/cmCTestRunScriptCommand.cxx 1 addition, 5 deletionsSource/CTest/cmCTestRunScriptCommand.cxx
- Source/cmAddExecutableCommand.cxx 1 addition, 3 deletionsSource/cmAddExecutableCommand.cxx
- Source/cmAddLibraryCommand.cxx 26 additions, 42 deletionsSource/cmAddLibraryCommand.cxx
- Source/cmCMakeHostSystemInformationCommand.cxx 1 addition, 4 deletionsSource/cmCMakeHostSystemInformationCommand.cxx
- Source/cmCTest.cxx 1 addition, 3 deletionsSource/cmCTest.cxx
- Source/cmCommandArgumentParserHelper.cxx 1 addition, 3 deletionsSource/cmCommandArgumentParserHelper.cxx
- Source/cmExportFileGenerator.cxx 1 addition, 3 deletionsSource/cmExportFileGenerator.cxx
- Source/cmFileCopier.cxx 2 additions, 3 deletionsSource/cmFileCopier.cxx
- Source/cmFunctionCommand.cxx 1 addition, 3 deletionsSource/cmFunctionCommand.cxx
- Source/cmGeneratorExpressionNode.cxx 3 additions, 3 deletionsSource/cmGeneratorExpressionNode.cxx
- Source/cmGeneratorTarget.cxx 3 additions, 4 deletionsSource/cmGeneratorTarget.cxx
- Source/cmGlobalVisualStudioGenerator.cxx 1 addition, 3 deletionsSource/cmGlobalVisualStudioGenerator.cxx
- Source/cmInstallCommand.cxx 3 additions, 4 deletionsSource/cmInstallCommand.cxx
- Source/cmListCommand.cxx 3 additions, 3 deletionsSource/cmListCommand.cxx
- Source/cmMacroCommand.cxx 1 addition, 4 deletionsSource/cmMacroCommand.cxx
Loading
Please register or sign in to comment