summaryrefslogtreecommitdiff
path: root/idlc/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:17:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:29 +0100
commita96b564aeeea6cd27d68084327d11be615ebc0a8 (patch)
tree122c691378f9a14c4c06dd5618e13a5b73d92226 /idlc/inc
parent85552d865b8dcd059b0eb33c42c8a491f88402e3 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Ic42387288c96436915956ede2eb510b9c3fbc49b
Diffstat (limited to 'idlc/inc')
-rw-r--r--idlc/inc/idlc/astattribute.hxx8
-rw-r--r--idlc/inc/idlc/astinterface.hxx2
-rw-r--r--idlc/inc/idlc/astoperation.hxx2
-rw-r--r--idlc/inc/idlc/astsequence.hxx4
-rw-r--r--idlc/inc/idlc/asttypedef.hxx2
5 files changed, 9 insertions, 9 deletions
diff --git a/idlc/inc/idlc/astattribute.hxx b/idlc/inc/idlc/astattribute.hxx
index 733dbd9e2419..86e4c0de7c74 100644
--- a/idlc/inc/idlc/astattribute.hxx
+++ b/idlc/inc/idlc/astattribute.hxx
@@ -47,16 +47,16 @@ public:
OUString const * getDoc, DeclList const * getExc,
OUString const * setDoc, DeclList const * setExc)
{
- if (getDoc != 0) {
+ if (getDoc != nullptr) {
m_getDocumentation = *getDoc;
}
- if (getExc != 0) {
+ if (getExc != nullptr) {
m_getExceptions = *getExc;
}
- if (setDoc != 0) {
+ if (setDoc != nullptr) {
m_setDocumentation = *setDoc;
}
- if (setExc != 0) {
+ if (setExc != nullptr) {
m_setExceptions = *setExc;
}
}
diff --git a/idlc/inc/idlc/astinterface.hxx b/idlc/inc/idlc/astinterface.hxx
index b5804d58864b..99f9dee5eea5 100644
--- a/idlc/inc/idlc/astinterface.hxx
+++ b/idlc/inc/idlc/astinterface.hxx
@@ -85,7 +85,7 @@ private:
INTERFACE_INDIRECT_MANDATORY, INTERFACE_DIRECT_MANDATORY };
struct VisibleMember {
- explicit VisibleMember(AstDeclaration const * theMandatory = 0):
+ explicit VisibleMember(AstDeclaration const * theMandatory = nullptr):
mandatory(theMandatory) {}
typedef std::map< OString, AstDeclaration const * > Optionals;
diff --git a/idlc/inc/idlc/astoperation.hxx b/idlc/inc/idlc/astoperation.hxx
index 88570918c162..a0a4f7b86cc6 100644
--- a/idlc/inc/idlc/astoperation.hxx
+++ b/idlc/inc/idlc/astoperation.hxx
@@ -39,7 +39,7 @@ public:
bool isVariadic() const;
- bool isConstructor() const { return m_pReturnType == 0; }
+ bool isConstructor() const { return m_pReturnType == nullptr; }
void setExceptions(DeclList const * pExceptions);
sal_uInt16 nExceptions()
diff --git a/idlc/inc/idlc/astsequence.hxx b/idlc/inc/idlc/astsequence.hxx
index 1169d8645f9c..1eefbea3f949 100644
--- a/idlc/inc/idlc/astsequence.hxx
+++ b/idlc/inc/idlc/astsequence.hxx
@@ -27,7 +27,7 @@ public:
AstSequence(AstType const * pMemberType, AstScope* pScope)
: AstType(NT_sequence, OString("[]")+pMemberType->getScopedName(), pScope)
, m_pMemberType(pMemberType)
- , m_pRelativName(NULL)
+ , m_pRelativName(nullptr)
{}
virtual ~AstSequence()
{
@@ -39,7 +39,7 @@ public:
{ return m_pMemberType; }
virtual bool isUnsigned() const override
- { return m_pMemberType != 0 && m_pMemberType->isUnsigned(); }
+ { return m_pMemberType != nullptr && m_pMemberType->isUnsigned(); }
virtual const sal_Char* getRelativName() const override;
private:
diff --git a/idlc/inc/idlc/asttypedef.hxx b/idlc/inc/idlc/asttypedef.hxx
index bc9c79d5d395..d31b7d62fc6f 100644
--- a/idlc/inc/idlc/asttypedef.hxx
+++ b/idlc/inc/idlc/asttypedef.hxx
@@ -34,7 +34,7 @@ public:
{ return m_pBaseType; }
virtual bool isUnsigned() const override
- { return m_pBaseType != 0 && m_pBaseType->isUnsigned(); }
+ { return m_pBaseType != nullptr && m_pBaseType->isUnsigned(); }
virtual bool dump(RegistryKey& rKey) override;
private: