diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-04-06 15:24:11 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-04-06 15:24:11 +0000 |
commit | f55b26080c85ea0432a468aa793886d019e1e8c2 (patch) | |
tree | eb49ba8244536f5394fe18bae68e07303c6e3d18 /c++-qt/tests | |
parent | 52bac339b6267aa9aaa3e2e0d02c2a62e47f83e4 (diff) | |
download | libgats-f55b26080c85ea0432a468aa793886d019e1e8c2.tar.gz libgats-f55b26080c85ea0432a468aa793886d019e1e8c2.tar.bz2 libgats-f55b26080c85ea0432a468aa793886d019e1e8c2.tar.xz libgats-f55b26080c85ea0432a468aa793886d019e1e8c2.zip |
The Qt API now supports cloning.
Diffstat (limited to 'c++-qt/tests')
-rw-r--r-- | c++-qt/tests/echo/mainwnd.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/c++-qt/tests/echo/mainwnd.cpp b/c++-qt/tests/echo/mainwnd.cpp index 4b90421..13c93a1 100644 --- a/c++-qt/tests/echo/mainwnd.cpp +++ b/c++-qt/tests/echo/mainwnd.cpp | |||
@@ -26,5 +26,11 @@ void MainWnd::newConnection() | |||
26 | void MainWnd::objectRead( Gats::Object *pObj ) | 26 | void MainWnd::objectRead( Gats::Object *pObj ) |
27 | { | 27 | { |
28 | ((Gats::GatsStream *)sender())->writeObject( pObj ); | 28 | ((Gats::GatsStream *)sender())->writeObject( pObj ); |
29 | |||
30 | Gats::Object *pCopy = pObj->clone(); | ||
29 | delete pObj; | 31 | delete pObj; |
32 | |||
33 | ((Gats::GatsStream *)sender())->writeObject( pCopy ); | ||
34 | |||
35 | delete pCopy; | ||
30 | } | 36 | } |