summaryrefslogtreecommitdiff
path: root/rsc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-11 14:32:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-11 14:32:07 +0200
commitf541b99855bd70781f8d7d655ab259ff9eb596f0 (patch)
tree162ea1823d835f484f08aaaf2390a9130a23d5e9 /rsc
parent545d5157f26b7fd3c5648ae6e727b1e1addca68f (diff)
loplugin:nullptr: Better heuristic to determine code shared between C and C++
Change-Id: I51e1c5fa4639e51fac90f92adf3d87d12960d589
Diffstat (limited to 'rsc')
-rw-r--r--rsc/inc/rscall.h6
-rw-r--r--rsc/inc/rscerror.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/rsc/inc/rscall.h b/rsc/inc/rscall.h
index cacd6d2d1e2e..91222df3e5c4 100644
--- a/rsc/inc/rscall.h
+++ b/rsc/inc/rscall.h
@@ -78,19 +78,19 @@ struct RSCINST
RscTop * pClass;
CLASS_DATA pData;
- RSCINST(){ pClass = NULL; pData = NULL; }
+ RSCINST(){ pClass = nullptr; pData = nullptr; }
RSCINST( RscTop * pCl, CLASS_DATA pClassData )
{
pClass = pCl;
pData = pClassData;
}
- bool IsInst() const { return( pData != NULL ); }
+ bool IsInst() const { return( pData != nullptr ); }
};
/********************** S U B I N F O S T R U C T ************************/
struct SUBINFO_STRUCT
{
- SUBINFO_STRUCT(){ nPos = 0; pClass = NULL; };
+ SUBINFO_STRUCT(){ nPos = 0; pClass = nullptr; };
RscId aId; // Identifier der Resource
sal_uInt32 nPos; // Position der Resource
RscTop * pClass; // Klasse des Eintrages
diff --git a/rsc/inc/rscerror.h b/rsc/inc/rscerror.h
index 2f6a6a71bf03..89bbe56d8ad5 100644
--- a/rsc/inc/rscerror.h
+++ b/rsc/inc/rscerror.h
@@ -127,7 +127,7 @@ public:
sal_uInt32 nErrors;// Anzahl der Fehler
RscError( RscVerbosity _verbosity )
{
- fListing = NULL;
+ fListing = nullptr;
nErrors = 0;
m_verbosity = _verbosity;
}
@@ -138,11 +138,11 @@ public:
static void StdErr( const char * );
void LstOut( const char * );
void Error( const ERRTYPE& rError, RscTop* pClass, const RscId &aId,
- const char * pMessage = NULL );
+ const char * pMessage = nullptr );
// Dieser Fehler sollte nur im Compilermodus auftreten,
// das Programm wird mit exit() verlassen
void FatalError( const ERRTYPE& rError, const RscId &aId,
- const char * pMessage = NULL );
+ const char * pMessage = nullptr );
};
#endif // INCLUDED_RSC_INC_RSCERROR_H