mirror of https://github.com/microsoft/clang.git
Fix a few nits in RenamingAction.
* Add missing override keyword. * avoid unnecessary copy of std::string. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316152 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3c7f433b74
commit
9d48724248
|
@ -77,10 +77,10 @@ private:
|
|||
class RenameOccurrences final : public SourceChangeRefactoringRule {
|
||||
public:
|
||||
RenameOccurrences(const NamedDecl *ND, std::string NewName)
|
||||
: Finder(ND), NewName(NewName) {}
|
||||
: Finder(ND), NewName(std::move(NewName)) {}
|
||||
|
||||
Expected<AtomicChanges>
|
||||
createSourceReplacements(RefactoringRuleContext &Context) {
|
||||
createSourceReplacements(RefactoringRuleContext &Context) override {
|
||||
Expected<SymbolOccurrences> Occurrences =
|
||||
Finder.findSymbolOccurrences(Context);
|
||||
if (!Occurrences)
|
||||
|
|
Loading…
Reference in New Issue