[Libreoffice-commits] core.git: include/vcl

Noel Grandin noel at peralex.com
Wed Jun 1 06:48:08 UTC 2016


 include/vcl/jobdata.hxx |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

New commits:
commit 79aaa464134970b15f6858f98cb9f8e37aced23c
Author: Noel Grandin <noel at peralex.com>
Date:   Tue May 31 14:04:55 2016 +0200

    Convert orientation to scoped enum
    
    Change-Id: If66319f51d8fa070b5575cc6e8eb6890d03768ff
    Reviewed-on: https://gerrit.libreoffice.org/25718
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/include/vcl/jobdata.hxx b/include/vcl/jobdata.hxx
index 13b34de..00a743f 100644
--- a/include/vcl/jobdata.hxx
+++ b/include/vcl/jobdata.hxx
@@ -24,12 +24,10 @@
 
 namespace psp {
 
-namespace orientation {
-enum type {
+enum class orientation {
     Portrait,
     Landscape
 };
-}
 
 struct VCL_DLLPUBLIC JobData
 {
@@ -44,8 +42,8 @@ struct VCL_DLLPUBLIC JobData
     int                     m_nPSLevel;     // 0: no override, else languagelevel to use
     int                     m_nColorDevice; // 0: no override, -1 grey scale, +1 color
     int                     m_nPDFDevice;   // 0: no override, -1 PostScript, +1: Automatically PDF, +2: Explicitly PDF
-    orientation::type       m_eOrientation;
-    OUString         m_aPrinterName;
+    orientation             m_eOrientation;
+    OUString                m_aPrinterName;
     const PPDParser*        m_pParser;
     PPDContext              m_aContext;
 


More information about the Libreoffice-commits mailing list