aboutsummaryrefslogtreecommitdiff
path: root/oop2w3/A.cpp
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-11-28 10:40:48 +0100
committerlonkaars <loek@pipeframe.xyz>2022-11-28 10:40:48 +0100
commitdeeb409ab2b0e1aeeb5dcdc0f21ed2f2462298e5 (patch)
tree09b824e4af40af5dea774931c000d8df26cc7fe0 /oop2w3/A.cpp
parentadb4076e576af4990051ff18f2afd017619d077e (diff)
fix class reference
Diffstat (limited to 'oop2w3/A.cpp')
-rw-r--r--oop2w3/A.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/oop2w3/A.cpp b/oop2w3/A.cpp
index b6f0d57..ccdca46 100644
--- a/oop2w3/A.cpp
+++ b/oop2w3/A.cpp
@@ -18,7 +18,7 @@ void A::actie1(int n) {
}
}
-void A::setB(B b) {
+void A::setB(B &b) {
std::cout << "A::setB(b)" << std::endl;
_b = &b;
}