Skip to content

Commit

Permalink
ARCMigrate: Initialize fields in EditEntry inline, NFC
Browse files Browse the repository at this point in the history
Initialize the fields inline instead of having to manually write out a
default constructor.

Differential Revision: https://reviews.llvm.org/D92597
  • Loading branch information
dexonsmith committed Dec 4, 2020
1 parent 1b023f5 commit 9ae0a46
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions clang/lib/ARCMigrate/ObjCMT.cpp
Expand Up @@ -2034,12 +2034,10 @@ MigrateSourceAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) {

namespace {
struct EditEntry {
const FileEntry *File;
unsigned Offset;
unsigned RemoveLen;
const FileEntry *File = nullptr;
unsigned Offset = 0;
unsigned RemoveLen = 0;
std::string Text;

EditEntry() : File(), Offset(), RemoveLen() {}
};
} // end anonymous namespace

Expand Down

0 comments on commit 9ae0a46

Please sign in to comment.