From 64853768c8b67017daade6ed0076d68ddd0c6614 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Tue, 6 Feb 2024 15:06:43 -0800 Subject: [PATCH] doc: Fix code example (reported by Doug Blough) --- doc/tutorial/source/tracing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial/source/tracing.rst b/doc/tutorial/source/tracing.rst index d55f12f5d..dfd397eca 100644 --- a/doc/tutorial/source/tracing.rst +++ b/doc/tutorial/source/tracing.rst @@ -558,7 +558,7 @@ could have used this ``Ptr`` to call a Connect method directly:: Ptr theObject = wifiStaNodes.Get(nWifi - 1); - theObject->TraceConnectWithoutContext("CourseChange", MakeCallback(&CourseChange)); + theObject->GetObject()->TraceConnectWithoutContext("CourseChange", MakeCallback(&CourseChange)); In the ``third.cc`` example, we actually wanted an additional "context" to be delivered along with the Callback parameters (which will be @@ -566,7 +566,7 @@ explained below) so we could actually use the following equivalent code:: Ptr theObject = wifiStaNodes.Get(nWifi - 1); - theObject->TraceConnect("CourseChange", MakeCallback(&CourseChange)); + theObject->GetObject()->TraceConnect("CourseChange", MakeCallback(&CourseChange)); It turns out that the internal code for ``Config::ConnectWithoutContext`` and ``Config::Connect`` actually