summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackNSISGenerator.h
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2020-03-21 11:57:29 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2020-03-24 16:50:37 (GMT)
commit8ca2504a4d65f433f88ffb79331cea950789152d (patch)
tree82cdd893b2457ab1886bccd3ca9c30361e0bc854 /Source/CPack/cmCPackNSISGenerator.h
parent761f1adcae026c6fd9e10dafdde679adbfaf5869 (diff)
downloadCMake-8ca2504a4d65f433f88ffb79331cea950789152d.zip
CMake-8ca2504a4d65f433f88ffb79331cea950789152d.tar.gz
CMake-8ca2504a4d65f433f88ffb79331cea950789152d.tar.bz2
use string_views to avoid memory allocations
Diffstat (limited to 'Source/CPack/cmCPackNSISGenerator.h')
-rw-r--r--Source/CPack/cmCPackNSISGenerator.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CPack/cmCPackNSISGenerator.h b/Source/CPack/cmCPackNSISGenerator.h
index 0af37af..88cba45 100644
--- a/Source/CPack/cmCPackNSISGenerator.h
+++ b/Source/CPack/cmCPackNSISGenerator.h
@@ -10,6 +10,8 @@
#include <string>
#include <vector>
+#include <cm/string_view>
+
#include "cmCPackGenerator.h"
class cmCPackComponent;
@@ -75,8 +77,7 @@ protected:
/// Returns the custom install directory if available for the specified
/// component, otherwise $INSTDIR is returned.
- std::string CustomComponentInstallDirectory(
- const std::string& componentName);
+ std::string CustomComponentInstallDirectory(cm::string_view componentName);
/// Translations any newlines found in the string into \\r\\n, so that the
/// resulting string can be used within NSIS.