diff options
Diffstat (limited to 'src/vmime/net/maildir/maildirFormat.hpp')
-rw-r--r-- | src/vmime/net/maildir/maildirFormat.hpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/vmime/net/maildir/maildirFormat.hpp b/src/vmime/net/maildir/maildirFormat.hpp index c0daf288..733303bd 100644 --- a/src/vmime/net/maildir/maildirFormat.hpp +++ b/src/vmime/net/maildir/maildirFormat.hpp @@ -55,9 +55,9 @@ public: { public: - context(shared_ptr <maildirStore> store); + context(const shared_ptr <maildirStore>& store); - shared_ptr <maildirStore> getStore() const; + shared_ptr <maildirStore> getStore(); private: @@ -146,7 +146,7 @@ public: * @param store of which to detect format * @return a Maildir format implementation for the specified store */ - static shared_ptr <maildirFormat> detect(shared_ptr <maildirStore> store); + static shared_ptr <maildirFormat> detect(const shared_ptr <maildirStore>& store); protected: @@ -155,20 +155,14 @@ protected: static const utility::file::path::component NEW_DIR; /**< Unread messages. */ - maildirFormat(shared_ptr <context> ctx); + maildirFormat(const shared_ptr <context>& ctx); /** Returns the current context. * * @return current context */ - shared_ptr <context> getContext(); - - /** Returns the current context (const version). - * - * @return current context - */ - shared_ptr <const context> getContext() const; + shared_ptr <context> getContext() const; /** Quick checks whether this implementation can read the Maildir * format in the specified directory. |