From 482d9ef9a8fe640d45eabbf4d6b32cfe5c1d124d Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Sun, 17 Mar 2019 20:22:26 +0100 Subject: cmGlobalXCodeGenerator: Prefer std::string over char* --- Source/cmGlobalXCodeGenerator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/cmGlobalXCodeGenerator.h') diff --git a/Source/cmGlobalXCodeGenerator.h b/Source/cmGlobalXCodeGenerator.h index 95db852caf..b80a9adef0 100644 --- a/Source/cmGlobalXCodeGenerator.h +++ b/Source/cmGlobalXCodeGenerator.h @@ -119,8 +119,8 @@ private: const std::string& name); bool CreateGroups(std::vector& generators); std::string XCodeEscapePath(const std::string& p); - std::string RelativeToSource(const char* p); - std::string RelativeToBinary(const char* p); + std::string RelativeToSource(const std::string& p); + std::string RelativeToBinary(const std::string& p); std::string ConvertToRelativeForMake(std::string const& p); void CreateCustomCommands(cmXCodeObject* buildPhases, cmXCodeObject* sourceBuildPhase, -- cgit v1.2.1