framework/source/services/substitutepathvars.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit fc19c71850d8ae741d86d107bece38a4aaa3faad Author: Julien Nabet <serval2...@yahoo.fr> Date: Fri Sep 1 20:07:49 2017 +0200 Replace list by vector in substitutepathvars (framework) Change-Id: I40cfc4925f14ebdc6f7b01274d2d60149008b426 Reviewed-on: https://gerrit.libreoffice.org/41800 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits