From 33fa5b5d0c512c72c1d50b9420a36431cd10eb5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 18 Feb 2019 22:39:56 +0100 Subject: Made to compile as C++. --- pair.inc.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pair.inc.h') diff --git a/pair.inc.h b/pair.inc.h index 5f746f1b..c42b2dfd 100644 --- a/pair.inc.h +++ b/pair.inc.h @@ -3,15 +3,15 @@ #else INIT_F(PAIR(T, V)) { - INIT(T, &this->key); - INIT(V, &this->val); + INIT(T, &self->key); + INIT(V, &self->val); return 0; } FREE_F(PAIR(T, V)) { - FREE(T)(&this->key); - FREE(V)(&this->val); + FREE(T)(&self->key); + FREE(V)(&self->val); return 0; } @@ -19,8 +19,8 @@ FREE_F(PAIR(T, V)) { FMT_F(PAIR(T, V)) { char lbuf[0x100]; char rbuf[0x1000]; - FMT(T)(&this->key, lbuf); - FMT(V)(&this->val, rbuf); + FMT(T)(&self->key, lbuf); + FMT(V)(&self->val, rbuf); return sprintf(buf, "<%s, %s>", lbuf, rbuf); } -- cgit v1.2.3