mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3e06b05004
commit
bbc0b5a3f8
5 changed files with 5 additions and 11 deletions
|
@ -71,7 +71,7 @@ QSpellEnchantDict *QSpellEnchantClient::createSpeller(
|
|||
int refs = m_dictRefs[dict];
|
||||
++refs;
|
||||
m_dictRefs[dict] = refs;
|
||||
return new QSpellEnchantDict(this, m_broker, dict, language);
|
||||
return new QSpellEnchantDict(this, dict, language);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,11 +27,9 @@ namespace Sonnet
|
|||
{
|
||||
|
||||
QSpellEnchantDict::QSpellEnchantDict(QSpellEnchantClient *client,
|
||||
EnchantBroker *broker,
|
||||
EnchantDict *dict,
|
||||
const QString &language)
|
||||
: m_broker(broker),
|
||||
m_dict(dict),
|
||||
: m_dict(dict),
|
||||
m_client(client)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -49,12 +49,10 @@ namespace Sonnet
|
|||
friend class QSpellEnchantClient;
|
||||
QSpellEnchantDict(const QString &lang);
|
||||
QSpellEnchantDict(QSpellEnchantClient *client,
|
||||
EnchantBroker *broker,
|
||||
EnchantDict *dict,
|
||||
const QString &language);
|
||||
|
||||
private:
|
||||
EnchantBroker *m_broker;
|
||||
EnchantDict *m_dict;
|
||||
QSpellEnchantClient *m_client;
|
||||
QString m_language;
|
||||
|
|
|
@ -128,8 +128,7 @@ void KRichTextEditor::openFile()
|
|||
}
|
||||
|
||||
QString tmpFile;
|
||||
if (KIO::NetAccess::download(fileNameFromDialog, tmpFile,
|
||||
this)) {
|
||||
if (KIO::NetAccess::download(fileNameFromDialog, tmpFile, this)) {
|
||||
QFile file(tmpFile);
|
||||
file.open(QIODevice::ReadOnly);
|
||||
textArea->setTextOrHtml(QTextStream(&file).readAll());
|
||||
|
@ -137,7 +136,6 @@ void KRichTextEditor::openFile()
|
|||
|
||||
KIO::NetAccess::removeTempFile(tmpFile);
|
||||
} else {
|
||||
KMessageBox::error(this,
|
||||
KIO::NetAccess::lastErrorString());
|
||||
KMessageBox::error(this, KIO::NetAccess::lastErrorString());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
# include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_FREEBSD) || defined(Q_OS_MAC)
|
||||
#if defined(Q_OS_FREEBSD)
|
||||
// "the other end's output queue size" - kinda braindead, huh?
|
||||
# define PTY_BYTES_AVAILABLE TIOCOUTQ
|
||||
#elif defined(TIOCINQ)
|
||||
|
|
Loading…
Add table
Reference in a new issue