diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-08 08:39:36 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-08 08:39:36 +0200 |
commit | 213bc71f84c8f8494f5b5009b730b5a7af2c7cee (patch) | |
tree | 4e26514b812625615d45d317a3987d9b66ba4ac7 /vcl/generic/print/genprnpsp.cxx | |
parent | 35a7310e7fc16f609f895c043ceb8e99a251b3ee (diff) |
Clean up function declarations and some unused functions
Change-Id: I382289c7188dfdc9839ff9e6362b6e039ffc5f9e
Diffstat (limited to 'vcl/generic/print/genprnpsp.cxx')
-rw-r--r-- | vcl/generic/print/genprnpsp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/generic/print/genprnpsp.cxx b/vcl/generic/print/genprnpsp.cxx index 2b92a6466b9c..f7e5a8646f83 100644 --- a/vcl/generic/print/genprnpsp.cxx +++ b/vcl/generic/print/genprnpsp.cxx @@ -987,18 +987,18 @@ struct PDFNewJobParameters sal_uInt16 i_nPaperBin = 0xffff ) : maPageSize( i_rSize ), mnPaperBin( i_nPaperBin ) {} - bool operator!=(const PDFNewJobParameters& rComp ) const + bool operator==(const PDFNewJobParameters& rComp ) const { Size aCompLSSize( rComp.maPageSize.Height(), rComp.maPageSize.Width() ); return - (maPageSize != rComp.maPageSize && maPageSize != aCompLSSize) - || mnPaperBin != rComp.mnPaperBin + (maPageSize == rComp.maPageSize || maPageSize == aCompLSSize) + && mnPaperBin == rComp.mnPaperBin ; } - bool operator==(const PDFNewJobParameters& rComp) const + bool operator!=(const PDFNewJobParameters& rComp) const { - return ! this->operator!=(rComp); + return ! this->operator==(rComp); } }; |