summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-01 10:39:20 +0200
committerNoel Grandin <noel@peralex.com>2016-09-01 11:05:21 +0200
commit26c149617c54e29902a77d2f95ca7c64af13b52f (patch)
treea44c4cf30ebd1e604970eb033b763dfc2a749cb0
parent30ab4661371e6ae1e4b60c9e1f72f1205a326221 (diff)
std::list<sal_Int32> to deque
Change-Id: I28942e35cf240b83ad49def6252f2709baf525a9
-rw-r--r--vcl/unx/generic/print/printerjob.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/unx/generic/print/printerjob.cxx b/vcl/unx/generic/print/printerjob.cxx
index ca68522a93da..c4f7aa3168d4 100644
--- a/vcl/unx/generic/print/printerjob.cxx
+++ b/vcl/unx/generic/print/printerjob.cxx
@@ -42,6 +42,7 @@
#include <sal/macros.h>
#include <algorithm>
+#include <deque>
#include <vector>
using namespace psp;
@@ -829,7 +830,7 @@ void PrinterJob::writeJobPatch( osl::File* pFile, const JobData& rJobData )
// order the patch files
// according to PPD spec the JobPatchFile options must be int
// and should be emitted in order
- std::list< sal_Int32 > patch_order;
+ std::deque< sal_Int32 > patch_order;
int nValueCount = pKey->countValues();
for( int i = 0; i < nValueCount; i++ )
{
@@ -846,10 +847,10 @@ void PrinterJob::writeJobPatch( osl::File* pFile, const JobData& rJobData )
}
}
- patch_order.sort();
- patch_order.unique();
+ std::sort(patch_order.begin(), patch_order.end());
+ std::unique(patch_order.begin(), patch_order.end());
- while( patch_order.begin() != patch_order.end() )
+ while( !patch_order.empty() )
{
// note: this discards patch files not adhering to the "int" scheme
// as there won't be a value for them