diff options
| author | Vincent Richard <[email protected]> | 2006-03-29 20:06:39 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2006-03-29 20:06:39 +0000 |
| commit | e9501b48d86d3c450ac4cbd9b1726d0d22b21784 (patch) | |
| tree | 13e2821f023bae07fb4d57beeddb2bae2d574ec7 /src/net/imap/IMAPStore.cpp | |
| parent | Force encoding when there is a CR/LF in the word. (diff) | |
| download | vmime-e9501b48d86d3c450ac4cbd9b1726d0d22b21784.tar.gz vmime-e9501b48d86d3c450ac4cbd9b1726d0d22b21784.zip | |
Refactored and cleaned up smart pointers.
Diffstat (limited to 'src/net/imap/IMAPStore.cpp')
| -rw-r--r-- | src/net/imap/IMAPStore.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/net/imap/IMAPStore.cpp b/src/net/imap/IMAPStore.cpp index ba99761d..e6f82c70 100644 --- a/src/net/imap/IMAPStore.cpp +++ b/src/net/imap/IMAPStore.cpp @@ -63,7 +63,8 @@ ref <folder> IMAPStore::getRootFolder() if (!isConnected()) throw exceptions::illegal_state("Not connected"); - return vmime::create <IMAPFolder>(folder::path(), this); + return vmime::create <IMAPFolder>(folder::path(), + thisRef().dynamicCast <IMAPStore>()); } @@ -72,7 +73,8 @@ ref <folder> IMAPStore::getDefaultFolder() if (!isConnected()) throw exceptions::illegal_state("Not connected"); - return vmime::create <IMAPFolder>(folder::path::component("INBOX"), this); + return vmime::create <IMAPFolder>(folder::path::component("INBOX"), + thisRef().dynamicCast <IMAPStore>()); } @@ -81,7 +83,7 @@ ref <folder> IMAPStore::getFolder(const folder::path& path) if (!isConnected()) throw exceptions::illegal_state("Not connected"); - return vmime::create <IMAPFolder>(path, this); + return vmime::create <IMAPFolder>(path, thisRef().dynamicCast <IMAPStore>()); } @@ -97,7 +99,7 @@ void IMAPStore::connect() throw exceptions::already_connected(); m_connection = vmime::create <IMAPConnection> - (thisWeakRef().dynamicCast <IMAPStore>(), getAuthenticator()); + (thisRef().dynamicCast <IMAPStore>(), getAuthenticator()); try { |
