summaryrefslogtreecommitdiff
path: root/tools/thirdparty/OpenFst/fst/lib/symbol-table.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/thirdparty/OpenFst/fst/lib/symbol-table.cpp')
-rw-r--r--tools/thirdparty/OpenFst/fst/lib/symbol-table.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/thirdparty/OpenFst/fst/lib/symbol-table.cpp b/tools/thirdparty/OpenFst/fst/lib/symbol-table.cpp
index 74c2dad..d4715da 100644
--- a/tools/thirdparty/OpenFst/fst/lib/symbol-table.cpp
+++ b/tools/thirdparty/OpenFst/fst/lib/symbol-table.cpp
@@ -80,7 +80,7 @@ void SymbolTableImpl::RecomputeCheckSum() const {
}
int64 SymbolTableImpl::AddSymbol(const string& symbol, int64 key) {
- hash_map<string, int64>::const_iterator it =
+ std::unordered_map<string, int64>::const_iterator it =
symbol_map_.find(symbol);
if (it == symbol_map_.end()) { // only add if not in table
check_sum_finalized_ = false;
@@ -134,7 +134,7 @@ bool SymbolTableImpl::Write(ostream &strm) const {
for (size_t i = 0; i < symbols_.size(); ++i) {
const string symbol = symbols_[i];
WriteType(strm, symbol);
- hash_map<string, int64>::const_iterator it = symbol_map_.find(symbol);
+ std::unordered_map<string, int64>::const_iterator it = symbol_map_.find(symbol);
WriteType(strm, it->second);
}
strm.flush();