summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-18 14:24:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-19 11:57:57 +0100
commita5be07d6b627a18f104e2feed063ff9020e8c610 (patch)
tree389ea7a3c163bcafca743373b94cda4fba937552 /l10ntools
parentb0cecbfb03dba67f01d1411a1e8b7402c2ca90ce (diff)
inline use-once typedefs
Change-Id: I5c3ffc03c26b3428f1f336e6ecba7838a1cf1157 Reviewed-on: https://gerrit.libreoffice.org/46764 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/xmlparse.hxx7
-rw-r--r--l10ntools/source/localize.cxx4
2 files changed, 4 insertions, 7 deletions
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx
index 8f485e9707eb..b3a8fbe36455 100644
--- a/l10ntools/inc/xmlparse.hxx
+++ b/l10ntools/inc/xmlparse.hxx
@@ -140,9 +140,6 @@ typedef std::unordered_map<OString, XMLElement*> LangHashMap;
/// Mapping XML Element string identifier <-> Language Map
typedef std::unordered_map<OString, LangHashMap*> XMLHashMap;
-/// Mapping XML tag names <-> have localizable strings
-typedef std::unordered_map<OString, sal_Bool> TagMap;
-
/** Holds information of a XML file, is root node of tree
*/
class XMLFile final : public XMLParentNode
@@ -180,7 +177,9 @@ private:
// DATA
OString m_sFileName;
- TagMap m_aNodes_localize;
+ /// Mapping XML tag names <-> have localizable strings
+ std::unordered_map<OString, sal_Bool> m_aNodes_localize;
+
std::unique_ptr<XMLHashMap> m_pXMLStrings;
std::vector <OString> m_vOrder;
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index 822996d85b55..9a2cf8ad4b94 100644
--- a/l10ntools/source/localize.cxx
+++ b/l10ntools/source/localize.cxx
@@ -247,9 +247,7 @@ void handleFilesOfDir(
///Handle files in lexical order
std::sort(aFiles.begin(), aFiles.end());
- typedef std::vector<OUString>::const_iterator citer_t;
-
- for( citer_t aIt = aFiles.begin(); aIt != aFiles.end(); ++aIt )
+ for( auto aIt = aFiles.begin(); aIt != aFiles.end(); ++aIt )
handleFile(rProject, *aIt, rPotDir);
}