Use Nothing instead of {} to initialize Optionals.

In preparation for the switch to llvm::Optional, which has an explicit
default constructor.

Swift SVN r22470
This commit is contained in:
Jordan Rose
2014-10-02 18:51:33 +00:00
parent 2bd116c20b
commit d3a9e58133
8 changed files with 33 additions and 32 deletions

View File

@@ -520,7 +520,7 @@ public:
/// kinds of decls, used to avoid re-entrant
/// deserialization.
Decl *getDecl(serialization::DeclID DID,
Optional<DeclContext *> ForcedContext = {});
Optional<DeclContext *> ForcedContext = Nothing);
/// Returns the decl context with the given ID, deserializing it if needed.
DeclContext *getDeclContext(serialization::DeclID DID);