summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2009-05-26 22:46:46 +0200
committerWojciech Polak <polak@gnu.org>2009-05-26 22:46:46 +0200
commitacef5b6f3dae4a8a584603ad8947227967bf4736 (patch)
treec7cfa6e0c710746a7a348126cb7a8632b013df5e /examples
parent1f49d2c9272b802745a74d40690a5442233460d2 (diff)
downloadmailutils-acef5b6f3dae4a8a584603ad8947227967bf4736.tar.gz
mailutils-acef5b6f3dae4a8a584603ad8947227967bf4736.tar.bz2
Add Secret class to libmu_cpp.
Diffstat (limited to 'examples')
-rw-r--r--examples/cpp/url-parse.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/cpp/url-parse.cc b/examples/cpp/url-parse.cc
index f27d516bf..b10efe07f 100644
--- a/examples/cpp/url-parse.cc
+++ b/examples/cpp/url-parse.cc
@@ -45,7 +45,11 @@ main ()
cout << "\tscheme <" << url.get_scheme () << ">" << endl;
cout << "\tuser <" << url.get_user () << ">" << endl;
- cout << "\tpasswd <" << url.get_passwd () << ">" << endl;
+
+ Secret sec = url.get_secret ();
+ cout << "\tpasswd <" << sec.password () << ">" << endl;
+ sec.password_unref ();
+
cout << "\tauth <" << url.get_auth () << ">" << endl;
cout << "\thost <" << url.get_host () << ">" << endl;
cout << "\tport " << url.get_port () << endl;

Return to:

Send suggestions and report system problems to the System administrator.