diff options
author | Brad King <brad.king@kitware.com> | 2018-08-09 11:59:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-08-09 12:00:03 (GMT) |
commit | 75844dd6092418ba4353352dfc172d5f5588a553 (patch) | |
tree | ff62edccfba19c8513170dca39b981f7a8aa6e24 /Source/cmExportCommand.cxx | |
parent | 34334c098f85004242f109857193f5f8cdce697d (diff) | |
parent | 69ca85cc7faf937d6d9d1dc1a27e062cd7765b1f (diff) | |
download | CMake-75844dd6092418ba4353352dfc172d5f5588a553.zip CMake-75844dd6092418ba4353352dfc172d5f5588a553.tar.gz CMake-75844dd6092418ba4353352dfc172d5f5588a553.tar.bz2 |
Merge topic 'cleanup-find-cstr'
69ca85cc7f Remove unnecessary c_str() in RegularExpression::find calls
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2271
Diffstat (limited to 'Source/cmExportCommand.cxx')
-rw-r--r-- | Source/cmExportCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportCommand.cxx b/Source/cmExportCommand.cxx index 7d5c4f8..c6ec5bf 100644 --- a/Source/cmExportCommand.cxx +++ b/Source/cmExportCommand.cxx @@ -237,7 +237,7 @@ bool cmExportCommand::HandlePackage(std::vector<std::string> const& args) } const char* packageExpr = "^[A-Za-z0-9_.-]+$"; cmsys::RegularExpression packageRegex(packageExpr); - if (!packageRegex.find(package.c_str())) { + if (!packageRegex.find(package)) { std::ostringstream e; e << "PACKAGE given invalid package name \"" << package << "\". " << "Package names must match \"" << packageExpr << "\"."; |