diff --git a/libs/store/KoEncryptedStore.cpp b/libs/store/KoEncryptedStore.cpp --- a/libs/store/KoEncryptedStore.cpp +++ b/libs/store/KoEncryptedStore.cpp @@ -549,7 +549,6 @@ } while (true) { - QByteArray pass; QCA::SecureArray password; bool keepPass = false; // I already have a password! Let's test it. If it's not good, we can dump it, anyway. @@ -668,7 +667,7 @@ if (wallet->hasEntry(m_filename + "/opendocument")) { wallet->removeEntry(m_filename + "/opendocument"); } - wallet->writePassword(m_filename + "/opendocument", m_password.toByteArray().data()); + wallet->writePassword(m_filename + "/opendocument", m_password.toByteArray().constData()); } delete wallet; } diff --git a/libs/store/tests/storedroptest.cpp b/libs/store/tests/storedroptest.cpp --- a/libs/store/tests/storedroptest.cpp +++ b/libs/store/tests/storedroptest.cpp @@ -32,6 +32,7 @@ class StoreDropTest : public QTextBrowser { +Q_OBJECT public: StoreDropTest(QWidget* parent); protected: @@ -168,3 +169,4 @@ txt += "\n"; return txt; } +#include "storedroptest.moc"