summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslaw Staniek <[email protected]>2015-06-10 21:46:46 +0200
committerJaroslaw Staniek <[email protected]>2015-07-26 23:35:12 +0200
commit7c937ed14e89adcc62f8ee050a84c966053307b4 (patch)
tree62ec2e598c264d3e7b16c87e0c9895b4f5eb2668
parent336904c933c5ad4a8ca1d331ac80136de8ad6368 (diff)
KMimeType port: mimeTypeForNameAndData() -> mimeTypeForFileNameAndData()
REVIEW:124065
-rwxr-xr-xkf5/convert-kmimetype.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/kf5/convert-kmimetype.pl b/kf5/convert-kmimetype.pl
index 363ff21..cf6a3d2 100755
--- a/kf5/convert-kmimetype.pl
+++ b/kf5/convert-kmimetype.pl
@@ -140,7 +140,7 @@ foreach my $file (@ARGV) {
s/KMimeType::findByPath\s*\((.*),\s*0\s*,\s*true\s*\)/db.mimeTypeForFile($1, QMimeDatabase::MatchExtension)/;
s/KMimeType::findByPath\s*\(/db.mimeTypeForFile(/;
- s/KMimeType::findByNameAndContent\s*\(/db.mimeTypeForNameAndData(/;
+ s/KMimeType::findByNameAndContent\s*\(/db.mimeTypeForFileNameAndData(/;
s/KMimeType::findByFileContent\s*\(\s*(\w+)\s*\)/db.mimeTypeForFile($1, QMimeDatabase::MatchContent)/;
s/(\w+)->name() == KMimeType::defaultMimeType/$1.isDefault/;
s/allParentMimeTypes/allAncestors/;