diff options
author | Montel Laurent <laurent.montel@kdab.com> | 2017-04-14 10:24:28 +0200 |
---|---|---|
committer | Laurent Montel <laurent.montel@kdab.com> | 2017-04-21 12:04:38 +0000 |
commit | 158ab3316edcd27bee0a462c1e7eb4b3195af10e (patch) | |
tree | 116d17b4363efc0417602c307976928da586d0ba /src/plugins/cpaster/pastebindotcomprotocol.cpp | |
parent | 384d141aaceda31e80bab3325285733bce7bd667 (diff) |
Use QString::*Ref method
Change-Id: I63a10f274dd17e08b5b8a2577762cc9f7960b5af
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/cpaster/pastebindotcomprotocol.cpp')
-rw-r--r-- | src/plugins/cpaster/pastebindotcomprotocol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpaster/pastebindotcomprotocol.cpp b/src/plugins/cpaster/pastebindotcomprotocol.cpp index cdd3d18c05..057e3cf8ea 100644 --- a/src/plugins/cpaster/pastebindotcomprotocol.cpp +++ b/src/plugins/cpaster/pastebindotcomprotocol.cpp @@ -144,7 +144,7 @@ void PasteBinDotComProtocol::fetch(const QString &id) QString link = QLatin1String(PASTEBIN_BASE) + QLatin1String(PASTEBIN_RAW); if (id.startsWith(QLatin1String("http://"))) - link.append(id.mid(id.lastIndexOf(QLatin1Char('/')) + 1)); + link.append(id.midRef(id.lastIndexOf(QLatin1Char('/')) + 1)); else link.append(id); |