[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [libkexiv2] libkexiv2: wrong return value
From: Gilles Caulier <caulier.gilles () gmail ! com>
Date: 2014-11-30 22:20:44
Message-ID: E1XvCrE-0004bE-LM () scm ! kde ! org
[Download RAW message or body]
Git commit 48a2e4ce78d8b2935c4e8a60fb29b9e2f7d65a60 by Gilles Caulier.
Committed on 30/11/2014 at 22:20.
Pushed by cgilles into branch 'master'.
wrong return value
M +2 -2 libkexiv2/kexiv2previews.cpp
http://commits.kde.org/libkexiv2/48a2e4ce78d8b2935c4e8a60fb29b9e2f7d65a60
diff --git a/libkexiv2/kexiv2previews.cpp b/libkexiv2/kexiv2previews.cpp
index 5bb1f08..f3516b0 100644
--- a/libkexiv2/kexiv2previews.cpp
+++ b/libkexiv2/kexiv2previews.cpp
@@ -164,14 +164,14 @@ int KExiv2Previews::height(int index)
QString KExiv2Previews::mimeType(int index)
{
- if (index < 0 || index >= size()) return 0;
+ if (index < 0 || index >= size()) return QString();
return QString::fromLatin1(d->properties[index].mimeType_.c_str());
}
QString KExiv2Previews::fileExtension(int index)
{
- if (index < 0 || index >= size()) return 0;
+ if (index < 0 || index >= size()) return QString();
return QString::fromLatin1(d->properties[index].extension_.c_str());
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic