qBittorrent/src
Luís Pereira 1a913c502b Prevent possible c++11 range-loop container detach
Explicit or implicit calls to begin() and end() cause a non-const
container to detach from shared data, ie. to perform a deep-copy to gain
a unique copy of the data.
That can be a expensive although unneeded operation.

In order to assist the developer a copyAsConst function is added.
copyAsConst returns a const copy of the object.

For lvalues just use qAsConst. It's only available on Qt 5.7.0. But we
added also for earlier versions. The developer can always use qAsConst.

Intended uses:

    QString s = ...;
    for (const auto &ch : qAsConst(s))
          process(ch);

    for (const auto &ch : copyAsConst(funcReturningQString()))
        process(ch);
2018-02-20 19:28:51 +00:00
..
app Merge pull request #8319 from sledgehammer999/saner_log_settings 2018-01-27 15:26:03 +02:00
base Prevent possible c++11 range-loop container detach 2018-02-20 19:28:51 +00:00
gui Prevent possible c++11 range-loop container detach 2018-02-20 19:28:51 +00:00
icons Add height padding to the transfer list icons. Closes #7951. 2017-12-02 00:50:40 +02:00
lang Sync translations from Transifex and run lupdate. 2018-02-09 21:14:12 +02:00
searchengine search only when category is supported by plugin Closes #8053 2017-12-17 13:04:37 +01:00
webui Prevent possible c++11 range-loop container detach 2018-02-20 19:28:51 +00:00
CMakeLists.txt speedwidget class: excess QtConcurent usage removal 2017-10-12 20:59:13 +07:00
config.h.cmakein Drop Qt 4 support 2017-03-05 22:24:59 +01:00
icons.qrc Remove unused image. 2017-10-30 02:41:24 +02:00
lang.qrc Sort the resource lists 2017-08-29 13:39:02 +08:00
qbittorrent_file.ico Use new logo in the file icon. 2017-10-30 02:41:26 +02:00
qbittorrent_mingw.rc
qbittorrent.exe.manifest Embed manifest when compiling with MSVC 2017-03-04 13:09:32 +08:00
qbittorrent.ico Change qbittorrent logo. Issue #6467. 2017-10-30 02:41:22 +02:00
qbittorrent.rc Update copyright year. 2018-01-06 02:23:09 +02:00
searchengine.qrc Sort the resource lists 2017-08-29 13:39:02 +08:00
src.pro Sort filename lists in .pri files 2017-12-31 11:53:45 +08:00
update_qrc_files.py