vcl/null/printerinfomanager.cxx |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

New commits:
commit 76c21c57b7de227df87a285c3907157242ccddde
Author: Tor Lillqvist <t...@collabora.com>
Date:   Thu Dec 8 21:03:01 2016 +0200

    loplugin:nullptr
    
    Change-Id: I5441a03edfb6f9b04705254f566e3fcc08046741

diff --git a/vcl/null/printerinfomanager.cxx b/vcl/null/printerinfomanager.cxx
index 233160a..f00dff2 100644
--- a/vcl/null/printerinfomanager.cxx
+++ b/vcl/null/printerinfomanager.cxx
@@ -36,11 +36,11 @@ void PrinterInfoManager::release()
 {
     SalData* pSalData = GetSalData();
     delete pSalData->m_pPIManager;
-    pSalData->m_pPIManager = NULL;
+    pSalData->m_pPIManager = nullptr;
 }
 
 PrinterInfoManager::PrinterInfoManager( Type eType ) :
-    m_pQueueInfo( NULL ),
+    m_pQueueInfo( nullptr ),
     m_eType( eType ),
     m_bUseIncludeFeature( false ),
     m_bUseJobPatch( true ),
@@ -109,7 +109,7 @@ bool PrinterInfoManager::checkFeatureToken( const OUString& 
/* rPrinterName */,
 
 FILE* PrinterInfoManager::startSpool( const OUString& /* rPrintername */, bool 
/* bQuickCommand */ )
 {
-    return NULL;
+    return nullptr;
 }
 
 bool PrinterInfoManager::endSpool( const OUString& /*rPrintername*/, const 
OUString& /*rJobTitle*/, FILE* /* pFile */, const JobData& 
/*rDocumentJobData*/, bool /*bBanner*/, const OUString& /*rFaxNumber*/ )
commit f5ac6b6e7735dcdd047e41b19edfa28ba69f4ee0
Author: Tor Lillqvist <t...@collabora.com>
Date:   Thu Dec 8 21:02:03 2016 +0200

    loplugin:staticmethods
    
    Change-Id: I9717f715762f6213836e2841e8521bec4509b096

diff --git a/vcl/null/printerinfomanager.cxx b/vcl/null/printerinfomanager.cxx
index de71d01..233160a 100644
--- a/vcl/null/printerinfomanager.cxx
+++ b/vcl/null/printerinfomanager.cxx
@@ -66,6 +66,8 @@ void PrinterInfoManager::initialize()
 
 void PrinterInfoManager::listPrinters( ::std::list< OUString >& rList ) const
 {
+    (void) this;
+
     rList.clear();
 }
 
@@ -73,6 +75,8 @@ const PrinterInfo& PrinterInfoManager::getPrinterInfo( const 
OUString& /* rPrint
 {
     static PrinterInfo aEmptyInfo;
 
+    (void) this;
+
     return aEmptyInfo;
 }
 
@@ -98,6 +102,8 @@ bool PrinterInfoManager::setDefaultPrinter( const OUString& 
/* rPrinterName */ )
 
 bool PrinterInfoManager::checkFeatureToken( const OUString& /* rPrinterName 
*/, const char* /* pToken */ ) const
 {
+    (void) this;
+
     return false;
 }
 
@@ -118,7 +124,7 @@ void PrinterInfoManager::setupJobContextData( JobData& /* 
rData */ )
 
 void PrinterInfoManager::setDefaultPaper( PPDContext& /* rContext */ ) const
 {
-
+    (void) this;
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to