summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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