]> granicus.if.org Git - clang/commitdiff
Use std::move on these arguments.
authorAdrian Prantl <aprantl@apple.com>
Sat, 19 Sep 2015 00:59:19 +0000 (00:59 +0000)
committerAdrian Prantl <aprantl@apple.com>
Sat, 19 Sep 2015 00:59:19 +0000 (00:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248076 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ExternalASTSource.h

index 8f9512947db19237a2d4a0fbb425604962b3d522..ec7978fcc8dee49ab123d13316182693829baa67 100644 (file)
@@ -149,8 +149,8 @@ public:
     ASTSourceDescriptor(){};
     ASTSourceDescriptor(std::string Name, std::string Path, std::string ASTFile,
                         uint64_t Signature)
-        : FullModuleName(Name), Path(Path), ASTFile(ASTFile),
-          Signature(Signature){};
+        : FullModuleName(std::move(Name)), Path(std::move(Path)),
+          ASTFile(std::move(ASTFile)), Signature(Signature){};
     ASTSourceDescriptor(const Module &M);
     std::string FullModuleName;
     std::string Path;