From 26c149617c54e29902a77d2f95ca7c64af13b52f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 1 Sep 2016 10:39:20 +0200 Subject: std::list to deque Change-Id: I28942e35cf240b83ad49def6252f2709baf525a9 --- vcl/unx/generic/print/printerjob.cxx | 9 +++++---- 1 file 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 #include +#include #include 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 -- cgit