summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorChirag Manwani <cmkmanwani@gmail.com>2016-03-04 18:03:41 +0530
committerNoel Grandin <noelgrandin@gmail.com>2016-03-07 06:33:10 +0000
commitcbbeb771ba3df1d87a69d2115234d88f520ce0e6 (patch)
tree0bb3cd6aa8adfee1f80decaa78009cb87c85960c /vcl/source/gdi
parenteb0774032011e45bf97f3102bf2005b4ae85f07d (diff)
tdf#96099 Reduce number of trivial typedefs
Change-Id: I39e9fcfdf2203239ac56d1c8195ca7ac07054817 Reviewed-on: https://gerrit.libreoffice.org/22898 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/sallayout.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx
index c5d0b73c186b..6caf2fd0254e 100644
--- a/vcl/source/gdi/sallayout.cxx
+++ b/vcl/source/gdi/sallayout.cxx
@@ -549,8 +549,7 @@ bool ImplLayoutArgs::PrepareFallback()
int nMin, nEnd;
// get the individual fallback requests
- typedef std::vector<int> IntVector;
- IntVector aPosVector;
+ std::vector<int> aPosVector;
aPosVector.reserve(mrStr.getLength());
maFallbackRuns.ResetPos();
for(; maFallbackRuns.GetRun( &nMin, &nEnd, &bRTL ); maFallbackRuns.NextRun() )
@@ -567,11 +566,11 @@ bool ImplLayoutArgs::PrepareFallback()
for(; maRuns.GetRun( &nMin, &nEnd, &bRTL ); maRuns.NextRun() )
{
if( !bRTL) {
- IntVector::const_iterator it = std::lower_bound( aPosVector.begin(), aPosVector.end(), nMin );
+ auto it = std::lower_bound( aPosVector.begin(), aPosVector.end(), nMin );
for(; (it != aPosVector.end()) && (*it < nEnd); ++it )
aNewRuns.AddPos( *it, bRTL );
} else {
- IntVector::const_iterator it = std::upper_bound( aPosVector.begin(), aPosVector.end(), nEnd );
+ auto it = std::upper_bound( aPosVector.begin(), aPosVector.end(), nEnd );
while( (it != aPosVector.begin()) && (*--it >= nMin) )
aNewRuns.AddPos( *it, bRTL );
}