summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot4.cpp2
-rw-r--r--Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot4.cpp b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot4.cpp
index 077e749..9b2277b 100644
--- a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot4.cpp
+++ b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot4.cpp
@@ -57,7 +57,7 @@ class EchoBot {
rosterRequest->send();
}
- void handleRosterReceived(const optional<ErrorPayload>& error) {
+ void handleRosterReceived(ErrorPayload::ref error) {
if (error) {
std::cerr << "Error receiving roster. Continuing anyway.";
}
diff --git a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp
index 6690b7c..47cbe1f 100644
--- a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp
+++ b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp
@@ -63,7 +63,7 @@ class EchoBot {
rosterRequest->send();
}
- void handleRosterReceived(const optional<ErrorPayload>& error) {
+ void handleRosterReceived(ErrorPayload::ref error) {
if (error) {
std::cerr << "Error receiving roster. Continuing anyway.";
}