mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
kget: replace kError()/abort() with kFatal() calls
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a6eaf629e1
commit
9ce106cc55
1 changed files with 2 additions and 4 deletions
|
@ -28,8 +28,7 @@ VerfierTest::VerfierTest(QObject *parent)
|
|||
path.append("test.txt");
|
||||
QFile file(path);
|
||||
if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) {
|
||||
kError() << "Creating file failed:" << path;
|
||||
abort();
|
||||
kFatal() << "Creating file failed:" << path;
|
||||
}
|
||||
m_file = KUrl(path);
|
||||
|
||||
|
@ -37,8 +36,7 @@ VerfierTest::VerfierTest(QObject *parent)
|
|||
const qint64 size = data.size();
|
||||
for (int i = 0; i < 50000; ++i) {
|
||||
if (file.write(data) != size) {
|
||||
kError() << "Creating file failed:" << path;
|
||||
abort();
|
||||
kFatal() << "Creating file failed:" << path;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue