Charles Kerr
20b5a8c62b
refactor: use std::vector in tr_sessionGetNextQueuedTorrents ( #1858 )
2021-09-29 17:21:04 -05:00
Charles Kerr
27068cb4a6
refactor: use std::unordered_set in loadBlocklists ( #1857 )
...
* refactor: use std::unordered_set in loadBlocklists
2021-09-29 16:23:34 -05:00
Charles Kerr
baafb68bfd
refactor: use std::unordered_set for tr_torrent.labels ( #1856 )
2021-09-29 14:52:19 -05:00
Charles Kerr
e03bc8e5bc
refactor: replace tr_ptrArray with std::unordered_set in tr_watchdir_scan() ( #1854 )
...
* replace tr_ptrArray with std:: in tr_watchdir_scan
2021-09-29 12:25:52 -05:00
Charles Kerr
055a8ecb4d
refactor: use std::set in deleteLocalData() ( #1853 )
2021-09-29 10:22:04 -05:00
Charles Kerr
b413e934ba
in variant-benc, use std::deque not tr_ptrArray ( #1851 )
2021-09-28 19:09:01 -05:00
Charles Kerr
e2f0432146
in variant-json, use std::deque not tr_ptrArray ( #1850 )
2021-09-28 08:56:46 -05:00
Charles Kerr
7d2f65455c
refactor: remove unused tr_list code ( #1849 )
2021-09-27 17:57:20 -05:00
Charles Kerr
16a70e57d2
refactor: use std::set in verify.cc's verifyList ( #1848 )
...
* refactor: use std::set in verify.cc
2021-09-27 17:07:58 -05:00
Charles Kerr
2554adba9c
refactor: use std::set in tr_webseed ( #1847 )
2021-09-27 14:28:11 -05:00
Charles Kerr
12f052621d
refactor: replace tr_list with std::list in tr_session.blocklists ( #1846 )
2021-09-27 13:28:41 -05:00
Charles Kerr
c42a6c785d
refactor: replace tr_list with std::set in web.cc ( #1845 )
2021-09-27 11:27:02 -05:00
Charles Kerr
3504933fba
refactor: replace tr_list with std::list in rpc-server whitelists ( #1844 )
2021-09-27 10:03:54 -05:00
Charles Kerr
96d3559a18
refactor: replace tr_list with std::list in tr_getWebClientDir() ( #1843 )
2021-09-27 08:45:21 -05:00
Charles Kerr
643074e7bb
refactor: use std::list in variant-json.cc ( #1842 )
...
* refactor: replace tr_list with std::deque in variant-json.cc struct ParentState
2021-09-27 07:46:38 -05:00
Charles Kerr
78d2074335
refactor: replace tr_list with std::list in sessionLoadTorrents() ( #1841 )
2021-09-26 17:23:11 -05:00
Charles Kerr
7f2578008d
refactor: tr_parseNumberRange returns std::vector. ( #1838 )
...
* refactor: tr_parseNumberRange returns std::vector.
2021-09-25 14:37:28 -05:00
Charles Kerr
17ee032dd8
refactor: remove TR_BEGIN_DECLS, TR_END_DECLS ( #1837 )
...
* refactor: remove TR_BEGIN_DECLS, TR_END_DECLS
2021-09-25 11:07:22 -05:00
Mike Gelfand
c646a26c43
Reimplement quarks order check as a static assert ( #1836 )
2021-09-25 08:56:34 -05:00
Mike Gelfand
4ac1c601f5
Port GTK client to C++ ( #1833 )
...
* Rename GTK client .c files to .cc
* Fix GTK client build errors after C to C++ switch
* Remove `G_{BEGIN,END}_DECLS`
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-09-25 13:47:09 +03:00
Charles Kerr
b92c609ed9
refactor: use std container for session torrents ( #1832 )
...
* refactor: use std container for session's torrents
2021-09-24 18:31:02 -05:00
Charles Kerr
6c77fa92ce
Port transmission-cli to C++ ( #1831 )
...
* move transmission-cli to C++
2021-09-24 09:38:09 -05:00
Mike Gelfand
b7ba261359
Port macOS client to C++ ( #1830 )
...
* Rename all .m (Obj-C) files to .mm (Obj-C++)
* Fix build in Obj-C++ mode
* Fix Xcode build
2021-09-24 07:56:57 -05:00
dependabot[bot]
5c9b34c676
chore(deps): bump url-parse from 1.5.1 to 1.5.3 in /web ( #1828 )
...
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3 )
---
updated-dependencies:
- dependency-name: url-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-09-22 17:24:46 -05:00
dependabot[bot]
54ebe7bd36
chore(deps): bump is-svg from 4.2.1 to 4.3.1 in /web ( #1701 )
...
Bumps [is-svg](https://github.com/sindresorhus/is-svg ) from 4.2.1 to 4.3.1.
- [Release notes](https://github.com/sindresorhus/is-svg/releases )
- [Commits](https://github.com/sindresorhus/is-svg/compare/v4.2.1...v4.3.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-09-22 12:24:57 -05:00
dependabot[bot]
3fcd72f87b
chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 in /web ( #1692 )
...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-09-22 11:13:54 -05:00
dependabot[bot]
49719afe68
chore(deps): bump lodash from 4.17.20 to 4.17.21 in /web ( #1691 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-09-22 07:53:17 -05:00
dependabot[bot]
e7baad9529
chore(deps): bump url-parse from 1.4.7 to 1.5.1 in /web ( #1688 )
...
Bumps [url-parse](https://github.com/unshiftio/url-parse ) from 1.4.7 to 1.5.1.
- [Release notes](https://github.com/unshiftio/url-parse/releases )
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-09-21 23:44:58 -05:00
Charles Kerr
1ee88c019f
refactor: port daemon and utils to C++ ( #1825 )
...
* refactor: compile daemon/ and utils/ as C++
Co-authored-by: Mike Gelfand <mikedld@mikedld.com>
2021-09-21 18:03:39 -05:00
Mike Gelfand
21407d67e9
Use default tracking branch for arc4 submodule
...
Turns out `branch` is not a commitish, which makes sense.
Fixes : #1823
2021-09-21 17:12:49 +03:00
Charles Kerr
f3a97b13ef
build: use CXX_WARNING_FLAGS in libtransmission ( #1824 )
2021-09-21 08:56:34 -05:00
dependabot[bot]
70f560af22
chore(deps): bump y18n from 4.0.0 to 4.0.3 in /web ( #1822 )
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.3.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3 )
---
updated-dependencies:
- dependency-name: y18n
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-20 14:07:51 -05:00
dependabot[bot]
cfc5b1641b
chore(deps): bump ws from 6.2.1 to 6.2.2 in /web ( #1721 )
...
Bumps [ws](https://github.com/websockets/ws ) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases )
- [Commits](https://github.com/websockets/ws/commits )
---
updated-dependencies:
- dependency-name: ws
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-09-19 16:44:30 -05:00
Dmytro Lytovchenko
312d18281d
C++ modernize: Replace MIN/MAX with type safe std::min/std::max ( #1806 )
...
* C++ modernize: Replace MIN/MAX with type safe std::min/std::max
* Template std::min/max invocations now explicitly use largest integer type
* torrent.cc did not have <algorithm> included
* MIN/MAX Changes for subprocess-win32.cc
* Using type{} style cast instead of template parameter in std::min/max
* 32-bit type cast errors with uint64_t versus size_t
* 32-bit type cast errors inout.cc and file.cc
* Missing include in windows code; Type cast error fixed
* Missing macro in win32 daemon; Replaced MIN in commented code with std::min
* Update libtransmission/tr-getopt.cc
Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
* Update libtransmission/file-posix.cc
Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
* Update tests/libtransmission/copy-test.cc
Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
* Update libtransmission/peer-mgr.cc
Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
* Strlen returns size_t, remove cast
Co-authored-by: Charles Kerr <charles@charleskerr.com>
Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
2021-09-19 15:41:35 -05:00
dependabot[bot]
6aba12888a
chore(deps): bump browserslist from 4.14.5 to 4.16.6 in /web ( #1727 )
...
Bumps [browserslist](https://github.com/browserslist/browserslist ) from 4.14.5 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases )
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/browserslist/browserslist/compare/4.14.5...4.16.6 )
---
updated-dependencies:
- dependency-name: browserslist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-09-17 09:53:09 -05:00
Charles Kerr
7e06c6401f
fix: clang warnings ( #1814 )
...
* fix: clang nullptr dereference warning in peer-io
* fix: shared variable name clang warning in peer-io
* fix: clang nullptr dereference warning in bitfield
* fix: shadowed variable in session.cc's parse_tos()
* fix: shadowed variable warning in sessionSetImpl()
* fix: tr_stringEndsWith() shadowed variable warning
* fix: a tr_peerMgrGetNextRequests() nullptr warning
2021-09-16 23:21:50 -05:00
dependabot[bot]
4f9bb7e7f8
chore(deps): bump color-string from 1.5.4 to 1.6.0 in /web ( #1770 )
...
Bumps [color-string](https://github.com/Qix-/color-string ) from 1.5.4 to 1.6.0.
- [Release notes](https://github.com/Qix-/color-string/releases )
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Qix-/color-string/compare/1.5.4...1.6.0 )
---
updated-dependencies:
- dependency-name: color-string
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-09-16 21:51:10 -05:00
dependabot[bot]
2c083379e0
chore(deps): bump postcss from 7.0.35 to 7.0.36 in /web ( #1771 )
...
Bumps [postcss](https://github.com/postcss/postcss ) from 7.0.35 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/7.0.35...7.0.36 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2021-09-16 18:51:08 -05:00
dependabot[bot]
87cefa540f
chore(deps): bump tar from 6.0.5 to 6.1.11 in /web ( #1774 )
...
Bumps [tar](https://github.com/npm/node-tar ) from 6.0.5 to 6.1.11.
- [Release notes](https://github.com/npm/node-tar/releases )
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md )
- [Commits](https://github.com/npm/node-tar/compare/v6.0.5...v6.1.11 )
2021-09-16 18:12:16 -05:00
Charles Kerr
25c4015d4a
fix: 'enumerated and non-enumerated type' warnings ( #1810 )
...
Simple change to silence warnings, changes the offending enums to be
constexprs. There is still more cleanup work to update other enums;
this just addresses the ones causing compiler warnings
2021-09-16 11:22:33 -05:00
Charles Kerr
c80fb5f6e0
refactor: variant fixups ( #1811 )
...
* cleanups to the previous variant commit
2021-09-15 17:11:00 -05:00
Charles Kerr
de4634f0a5
fix: clang++ nullptr dereference warning in tr_variantWalk() ( #1800 )
...
* fix: clang++ nullptr dereference warning in variant.cc
2021-09-15 13:51:19 -05:00
Charles Kerr
e19353bf60
fix: dead-store asssignment warning in file-posix. ( #1809 )
...
* fix: dead-store asssignment warning in file-posix.
This also extracts the different per-platform preallocation methods into
their own standalone functions for readability and clarity.
2021-09-15 11:55:46 -05:00
Charles Kerr
fc0ba38bc9
refactor: tr_quickfindFirstK --> std::partial_sort ( #1794 )
...
* refactor: tr_quickfindFirstK --> std::partial_sort
Remove `tr_quickfindFirstK()` and use `std::partial_sort()` instead.
Co-authored-by: Mike Gelfand <mikedld@mikedld.com>
2021-09-15 09:32:07 -05:00
Tyler
32fab5a67b
add authentication information to rpc-spec.txt ( #1808 )
...
* document the Authentication header in rpc-spec.txt
2021-09-15 08:35:23 -05:00
Charles Kerr
abdfcb9681
fix: dead store warning in peer-msgs.cc ( #1804 )
2021-09-14 22:49:04 -05:00
Charles Kerr
19de6035a5
fix: dead store warning in handshake.cc ( #1803 )
2021-09-14 21:23:53 -05:00
Dmytro Lytovchenko
43d1ece562
C++ modernization: Replace NULLs with typesafe nullptrs ( #1799 )
...
Fixing CI errors and build errors
Reverted changes: NULL in EV_SET macro; Clang-formatting
Reverted changes: MacosX *.m files reverted from master
2021-09-14 19:18:09 -05:00
Charles Kerr
098c7508e3
fix: clang nullptr dereference warning in utils.cc ( #1797 )
...
We know what strings are passed into tr_strip_positional_args(). Instead
of using dynamic allocation, use a fixed-size array that's big enough to
fit the strings that we have.
2021-09-13 08:45:01 -05:00
Charles Kerr
90605d4bd3
build: skip clang-tidy on lgtm ( #1792 )
...
* build: skip clang-tidy on lgtm
* build: skip clang-tidy on appveyor
Co-authored-by: Mike Gelfand <mikedld@users.noreply.github.com>
2021-09-12 14:36:51 -05:00