From: Simon Levermann <simon.leverm...@governikus.de> --- Source/CPack/cmCPackDragNDropGenerator.cxx | 2 +- Source/CPack/cmCPackDragNDropGenerator.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Source/CPack/cmCPackDragNDropGenerator.cxx b/Source/CPack/cmCPackDragNDropGenerator.cxx index cdcda64..ccda0d5 100644 --- a/Source/CPack/cmCPackDragNDropGenerator.cxx +++ b/Source/CPack/cmCPackDragNDropGenerator.cxx @@ -843,7 +843,7 @@ cmCPackDragNDropGenerator::WriteLicense(cmGeneratedFileStream& outputStream, int } void -cmCPackDragNDropGenerator::BreakLongLine(std::string line, std::vector<std::string>& lines) +cmCPackDragNDropGenerator::BreakLongLine(const std::string& line, std::vector<std::string>& lines) { const size_t max_line_length = 512; for(size_t i = 0; i < line.size(); i += max_line_length) diff --git a/Source/CPack/cmCPackDragNDropGenerator.h b/Source/CPack/cmCPackDragNDropGenerator.h index 9fb39a4..65b64ef 100644 --- a/Source/CPack/cmCPackDragNDropGenerator.h +++ b/Source/CPack/cmCPackDragNDropGenerator.h @@ -48,7 +48,7 @@ private: std::string slaDirectory; void WriteLicense(cmGeneratedFileStream& outputStream, int licenseNumber, std::string licenseLanguage, std::string licenseFile = ""); - void BreakLongLine(std::string line, std::vector<std::string>& lines); + void BreakLongLine(const std::string& line, std::vector<std::string>& lines); void EscapeQuotes(std::string& line); }; -- 2.1.4 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers