From 728f4448a91f0e19e71244efe94d894649102022 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 29 May 2016 10:46:35 +0000 Subject: Remove some 'const' specifiers that do nothing but prevent moving the argument. Found by clang-tidy's misc-move-const-arg. While there drop some obsolete c_str() calls. llvm-svn: 271181 --- llvm/tools/obj2yaml/Error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/obj2yaml/Error.h') diff --git a/llvm/tools/obj2yaml/Error.h b/llvm/tools/obj2yaml/Error.h index f4e191c872c..f5111f257ce 100644 --- a/llvm/tools/obj2yaml/Error.h +++ b/llvm/tools/obj2yaml/Error.h @@ -33,7 +33,7 @@ class Obj2YamlError : public ErrorInfo { public: static char ID; Obj2YamlError(obj2yaml_error C) : Code(C) {} - Obj2YamlError(const std::string &ErrMsg) : ErrMsg(std::move(ErrMsg)) {} + Obj2YamlError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {} Obj2YamlError(obj2yaml_error C, std::string ErrMsg) : ErrMsg(std::move(ErrMsg)), Code(C) {} void log(raw_ostream &OS) const override; -- cgit v1.2.3