From 951ef21f1757d4b2d5e529156f1d01ba9ce19b7f Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Tue, 23 Oct 2018 04:52:07 -0300 Subject: [PATCH] Rename bad overload Add to Sink --- src/op.cpp | 2 +- src/op.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/op.cpp b/src/op.cpp index f5eec52..68dbe33 100644 --- a/src/op.cpp +++ b/src/op.cpp @@ -60,7 +60,7 @@ void Op::Write(Stream& stream) const { } } -void Op::Add(Operand* operand) { +void Op::Sink(Operand* operand) { Add(static_cast(operand)); operand_store.push_back(std::unique_ptr(operand)); } diff --git a/src/op.h b/src/op.h index d0ef39a..7111721 100644 --- a/src/op.h +++ b/src/op.h @@ -27,7 +27,7 @@ class Op : public Operand { void Write(Stream& stream) const; - void Add(Operand* operand); + void Sink(Operand* operand); void Add(const Operand* operand);