summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-06-25 00:01:52 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-25 09:11:16 +0200
commit087213c6a27de31d36d9ccb72a514048a0bb7724 (patch)
tree68fb37aad1e7b7bc51ec384c81ed75e72bbd81a6 /stoc
parent71d02f5b6ca78935df3d09ec0a5817f5870b056e (diff)
tdf#96099 Remove trivial container typedefs in stoc, svl, svx, sw
Change-Id: I0b4d18d2120ba2ce7d2526332bec199f52393290 Reviewed-on: https://gerrit.libreoffice.org/56363 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/uriproc/UriReferenceFactory.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/stoc/source/uriproc/UriReferenceFactory.cxx b/stoc/source/uriproc/UriReferenceFactory.cxx
index ac1178bb491d..600df5e7cde2 100644
--- a/stoc/source/uriproc/UriReferenceFactory.cxx
+++ b/stoc/source/uriproc/UriReferenceFactory.cxx
@@ -211,10 +211,8 @@ css::uno::Reference< css::uri::XUriReference > parseGeneric(
scheme, isHierarchical, hasAuthority, authority, path, hasQuery, query);
}
-typedef std::vector< sal_Int32 > Segments;
-
void processSegments(
- Segments & segments,
+ std::vector<sal_Int32> & segments,
css::uno::Reference< css::uri::XUriReference > const & uriReference,
bool base, bool processSpecialSegments)
{
@@ -406,7 +404,7 @@ css::uno::Reference< css::uri::XUriReference > Factory::makeAbsolute(
abs.append(baseUriReference->getAuthority());
}
if (uriReference->hasRelativePath()) {
- Segments segments;
+ std::vector<sal_Int32> segments;
processSegments(
segments, baseUriReference, true, processSpecialBaseSegments);
processSegments(segments, uriReference, false, true);
@@ -420,8 +418,7 @@ css::uno::Reference< css::uri::XUriReference > Factory::makeAbsolute(
if (slash) {
abs.append('/');
}
- for (Segments::iterator i(segments.begin()); i != segments.end();
- ++i)
+ for (auto i(segments.begin()); i != segments.end(); ++i)
{
if (*i < -1) {
OUString segment(