From df8002f2237b226e2c238df38c0a1ee8d36f4acb Mon Sep 17 00:00:00 2001 From: Rainer Schuetze Date: Sun, 10 Apr 2016 11:36:02 +0200 Subject: [PATCH] fix C++ declarations of D symbols --- ddmd/dsymbol.h | 2 +- ddmd/mtype.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ddmd/dsymbol.h b/ddmd/dsymbol.h index ac00d93b3f9..8d3dbd162c0 100644 --- a/ddmd/dsymbol.h +++ b/ddmd/dsymbol.h @@ -190,7 +190,7 @@ class Dsymbol : public RootObject char *toChars(); virtual char *toPrettyCharsHelper(); // helper to print fully qualified (template) arguments Loc& getLoc(); - char *locToChars(); + const char *locToChars(); bool equals(RootObject *o); bool isAnonymous(); void error(Loc loc, const char *format, ...); diff --git a/ddmd/mtype.h b/ddmd/mtype.h index a5df647d6b0..4104cbc4974 100644 --- a/ddmd/mtype.h +++ b/ddmd/mtype.h @@ -788,7 +788,7 @@ class TypeStruct : public Type structalign_t alignment(); Expression *defaultInit(Loc loc); Expression *defaultInitLiteral(Loc loc); - bool isZeroInit(Loc loc) const; + bool isZeroInit(Loc loc) /*const*/; bool isAssignable(); bool isBoolean() const; bool needsDestruction() const;