Repository: mesos
Updated Branches:
  refs/heads/master 0c8fb0d91 -> 080e1b7eb


Removed redundant call to `std::string::c_str()` in stout.

Spotted using the "readability-redundant-string-cstr" clang-tidy check.

Review: https://reviews.apache.org/r/58037


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/07822815
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/07822815
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/07822815

Branch: refs/heads/master
Commit: 07822815f6b07add8ee2e6429564764313d75354
Parents: 0c8fb0d
Author: Neil Conway <[email protected]>
Authored: Mon Mar 13 19:29:13 2017 -0700
Committer: Neil Conway <[email protected]>
Committed: Thu Mar 30 09:51:28 2017 -0700

----------------------------------------------------------------------
 3rdparty/stout/include/stout/elf.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/07822815/3rdparty/stout/include/stout/elf.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/stout/include/stout/elf.hpp 
b/3rdparty/stout/include/stout/elf.hpp
index da2ce0c..ba3fad9 100644
--- a/3rdparty/stout/include/stout/elf.hpp
+++ b/3rdparty/stout/include/stout/elf.hpp
@@ -75,7 +75,7 @@ public:
   {
     File* file = new File();
 
-    if (!file->elf.load(path.c_str())) {
+    if (!file->elf.load(path)) {
       delete file;
       return Error("Unknown error during elfio::load");
     }

Reply via email to