Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: src/IceELFSection.h

Issue 1343843003: Refactor all instances of `typedef y x` to the C++11 `using x = y` syntax. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceELFObjectWriter.h ('k') | src/IceFixups.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceELFSection.h
diff --git a/src/IceELFSection.h b/src/IceELFSection.h
index 961d8d24e3c1dbb1918a0305ec15a524015cacb2..92dc02b79b0322ff490c88c95f238a4c4603bc3f 100644
--- a/src/IceELFSection.h
+++ b/src/IceELFSection.h
@@ -200,8 +200,8 @@ public:
private:
// Map from symbol name to its symbol information.
// This assumes symbols are unique across all sections.
- typedef IceString SymtabKey;
- typedef std::map<SymtabKey, ELFSym> SymMap;
+ using SymtabKey = IceString;
+ using SymMap = std::map<SymtabKey, ELFSym>;
template <bool IsELF64>
void writeSymbolMap(ELFStreamer &Str, const SymMap &Map);
@@ -299,13 +299,13 @@ private:
bool operator()(const IceString &StrA, const IceString &StrB) const;
};
- typedef std::map<IceString, size_t, SuffixComparator> StringToIndexType;
+ using StringToIndexType = std::map<IceString, size_t, SuffixComparator>;
/// Track strings to their index. Index will be UnknownIndex if not
/// yet laid out.
StringToIndexType StringToIndexMap;
- typedef std::vector<uint8_t> RawDataType;
+ using RawDataType = std::vector<uint8_t>;
RawDataType StringData;
};
« no previous file with comments | « src/IceELFObjectWriter.h ('k') | src/IceFixups.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698