summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-10-21 08:58:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-21 18:08:47 +0200
commitea6858c1e388c2d17a0825f3d21353ded67083eb (patch)
treed9d0fb6b02fe086ceab47b5b09b2b5a384613595 /include
parentcheck seeks earlier (diff)
downloadcore-ea6858c1e388c2d17a0825f3d21353ded67083eb.tar.gz
core-ea6858c1e388c2d17a0825f3d21353ded67083eb.zip
Replace lists by vectors in ppdparser (vcl)
+ simplify some parts Change-Id: I78c611f234e06e542be56016231f6c16d44e4385 Reviewed-on: https://gerrit.libreoffice.org/43640 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/ppdparser.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/vcl/ppdparser.hxx b/include/vcl/ppdparser.hxx
index d01852117b0a..227c617961d2 100644
--- a/include/vcl/ppdparser.hxx
+++ b/include/vcl/ppdparser.hxx
@@ -19,7 +19,6 @@
#ifndef INCLUDED_VCL_PPDPARSER_HXX
#define INCLUDED_VCL_PPDPARSER_HXX
-#include <list>
#include <unordered_map>
#include <vector>
@@ -141,7 +140,7 @@ public:
private:
hash_type m_aKeys;
value_type m_aOrderedKeys;
- ::std::list< PPDConstraint > m_aConstraints;
+ ::std::vector< PPDConstraint > m_aConstraints;
// some identifying fields
OUString m_aPrinterName;
@@ -181,7 +180,7 @@ private:
void parseOrderDependency(const OString& rLine);
void parseOpenUI(const OString& rLine, const OString& rPPDGroup);
void parseConstraint(const OString& rLine);
- void parse( std::list< OString >& rLines );
+ void parse( std::vector< OString >& rLines );
OUString handleTranslation(const OString& i_rString, bool i_bIsGlobalized);
@@ -197,7 +196,7 @@ public:
int getKeys() const { return m_aKeys.size(); }
bool hasKey( const PPDKey* ) const;
- const ::std::list< PPDConstraint >& getConstraints() const { return m_aConstraints; }
+ const ::std::vector< PPDConstraint >& getConstraints() const { return m_aConstraints; }
bool isColorDevice() const { return m_bColorDevice; }
bool isType42Capable() const { return m_bType42Capable; }