diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-09-01 20:07:49 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-09-01 21:40:54 +0200 |
commit | fc19c71850d8ae741d86d107bece38a4aaa3faad (patch) | |
tree | f35d8f7f75d5fc087121f63c6fe8dac72f3a2584 /framework | |
parent | de700127bd95a6d12de4477e1df43de2852f4bcc (diff) |
Replace list by vector in substitutepathvars (framework)
Change-Id: I40cfc4925f14ebdc6f7b01274d2d60149008b426
Reviewed-on: https://gerrit.libreoffice.org/41800
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/services/substitutepathvars.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/services/substitutepathvars.cxx b/framework/source/services/substitutepathvars.cxx index bd24b5667de7..c72771c47a0f 100644 --- a/framework/source/services/substitutepathvars.cxx +++ b/framework/source/services/substitutepathvars.cxx @@ -184,7 +184,7 @@ private: VarNameToIndexMap m_aPreDefVarMap; // Mapping from pre-def variable names to enum for array access PredefinedPathVariables m_aPreDefVars; // All predefined variables - std::list<ReSubstFixedVarOrder> m_aReSubstFixedVarOrder; // To speed up resubstitution fixed variables (order for lookup) + std::vector<ReSubstFixedVarOrder> m_aReSubstFixedVarOrder; // To speed up resubstitution fixed variables (order for lookup) css::uno::Reference< css::uno::XComponentContext > m_xContext; }; @@ -219,7 +219,7 @@ SubstitutePathVariables::SubstitutePathVariables( const Reference< XComponentCon m_aReSubstFixedVarOrder.push_back( aFixedVar ); } } - m_aReSubstFixedVarOrder.sort(); + sort(m_aReSubstFixedVarOrder.begin(),m_aReSubstFixedVarOrder.end()); } // XStringSubstitution |