Yat Ho
f495047a33
ci(qt): run clang-tidy on Linux ( #8557 )
...
* ci(qt): run clang-tidy
* chore(qt): silence warnings
2026-02-19 09:30:05 -06:00
Yat Ho
bea234b8ed
fix(qt): handle RPC error data object ( #8388 )
2026-02-09 21:02:38 -06:00
Charles Kerr
554cc56bdf
refactor: rename our namespace to tr ( #8256 )
...
tr and tr::app are less cluttered than libtransmission:: and transmission::app
2026-01-28 18:11:34 -06:00
Charles Kerr
62be679769
refactor: remove tr_session* argument from tr_rpc_response_func ( #8160 )
2026-01-20 19:44:06 -06:00
Charles Kerr
677e0a6335
test: add tests for RpcClient ( #8137 )
...
* refactor do not cache style in convert_outgoing_data() -- not testing-friendly
* refactor: pass a QNetworkAccessManager into RpcClient constructor
this way we can inject a fake one in tests
* refactor: add RpcClient tests
* refactor: remove pointless QVERIFY call
* refactor: add api_compat::default_style()
* refactor: add api_compat::set_default_style()
* test: parameterize RpcClient tests for Tr4 and Tr5
2026-01-14 13:52:10 -06:00
Charles Kerr
0eb9032bee
fix: typo in User-Agent from requests posted by trqt ( #8135 )
2026-01-14 12:29:52 -06:00
Charles Kerr
140958a8a1
refactor: no macros in transmission.h ( #8099 )
...
* refactor: replace TR_RPC_SESSION_ID_HEADER macro with TrRpcSessionIdHeader constant
refactor: replace TR_RPC_RPC_VERSION_HEADER macro with TrRpcVersionHeader constant
* refactor: remove macro TR_DEFAULT_RPC_PORT_STR
* refactor: remove macro TR_DEFAULT_PEER_PORT_STR
* refactor: remove macro TR_DEFAULT_PEER_LIMIT_GLOBAL_STR
* refactor: remove macro TR_DEFAULT_PEER_LIMIT_TORRENT_STR
* refactor: remove macro TR_DEFAULT_PEER_SOCKET_TOS_STR
* refactor: replace DEFAULT_BLOCKLIST_FILENAME macro with TrDefaultBlocklistFilename constant
* refactor: rename TrHttpServerDefaultBasePath to TrDefaultHttpServerBasePath for consistency with other defaults
* refactor: group constants together near the top of transmission.h
* refactor: hardcode string lengths to avoid FTBFS on older C++17 compilers
* refactor: move macros to the tr_getopt clients
* refactor: explicitly specify the parameter index to avoid passing in TrRpcSessionIdHeader twice
* refactor: add an error message to new static_asserts
2026-01-14 07:52:57 -06:00
Charles Kerr
781bb3f3d4
fix: 4.1.0-beta.5 regression using trqt as a remote ( #8103 )
2026-01-09 23:11:27 -06:00
Yat Ho
62c8edc039
refactor: use api_compat for rpc ( #7995 )
...
* fix: legacy RPC tag should ignore non-integers
* refactor: delegate legacy RPC callback to api-compat
* refactor: move `TR_KEY_alt_speed_down_kebab` handling
* refactor: move `TR_KEY_alt_speed_enabled_kebab` handling
* refactor: move `TR_KEY_alt_speed_time_begin_kebab` handling
* refactor: move `TR_KEY_alt_speed_time_day_kebab` handling
* refactor: move `TR_KEY_alt_speed_time_enabled_kebab` handling
* refactor: move `TR_KEY_alt_speed_time_end_kebab` handling
* refactor: move `TR_KEY_alt_speed_up_kebab` handling
* refactor: move `TR_KEY_anti_brute_force_enabled_kebab` handling
* refactor: move `TR_KEY_anti_brute_force_threshold_kebab` handling
* refactor: move `TR_KEY_blocklist_enabled_kebab` handling
* refactor: move `TR_KEY_blocklist_size_kebab` handling
* refactor: move `TR_KEY_blocklist_url_kebab` handling
* refactor: move `TR_KEY_cache_size_mb_kebab` handling
* refactor: move `TR_KEY_config_dir_kebab` handling
* refactor: move `TR_KEY_default_trackers_kebab` handling
* refactor: move `TR_KEY_dht_enabled_kebab` handling
* refactor: move `TR_KEY_download_dir_kebab` handling
* refactor: move `TR_KEY_download_dir_free_space_kebab` handling
* refactor: move `TR_KEY_download_queue_enabled_kebab` handling
* refactor: move `TR_KEY_download_queue_size_kebab` handling
* refactor: move `TR_KEY_idle_seeding_limit_kebab` handling
* refactor: move `TR_KEY_idle_seeding_limit_enabled_kebab` handling
* refactor: move `TR_KEY_incomplete_dir_kebab` handling
* refactor: move `TR_KEY_incomplete_dir_enabled_kebab` handling
* refactor: move `TR_KEY_lpd_enabled_kebab` handling
* refactor: move `TR_KEY_peer_limit_global_kebab` handling
* refactor: move `TR_KEY_peer_limit_per_torrent_kebab` handling
* refactor: move `TR_KEY_peer_port_kebab` handling
* refactor: move `TR_KEY_peer_port_random_on_start_kebab` handling
* refactor: move `TR_KEY_pex_enabled_kebab` handling
* refactor: move `TR_KEY_port_forwarding_enabled_kebab` handling
* refactor: move `TR_KEY_queue_stalled_enabled_kebab` handling
* refactor: move `TR_KEY_queue_stalled_minutes_kebab` handling
* refactor: move `TR_KEY_rename_partial_files_kebab` handling
* refactor: move `TR_KEY_rpc_version_kebab` handling
* refactor: move `TR_KEY_rpc_version_minimum_kebab` handling
* refactor: move `TR_KEY_rpc_version_semver_kebab` handling
* refactor: move `TR_KEY_script_torrent_added_enabled_kebab` handling
* refactor: move `TR_KEY_script_torrent_added_filename_kebab` handling
* refactor: move `TR_KEY_script_torrent_done_enabled_kebab` handling
* refactor: move `TR_KEY_script_torrent_done_filename_kebab` handling
* refactor: move `TR_KEY_script_torrent_done_seeding_enabled_kebab` handling
* refactor: move `TR_KEY_script_torrent_done_seeding_filename_kebab` handling
* refactor: remove `tr_quark_convert` usage for `tr_session::Scripts`
* refactor: move `TR_KEY_seed_ratio_limit_camel` handling
* refactor: move `TR_KEY_seed_ratio_limited_camel` handling
* refactor: move `TR_KEY_seed_queue_enabled_kebab` handling
* refactor: move `TR_KEY_seed_queue_size_kebab` handling
* refactor: move `TR_KEY_session_id_kebab` handling
* refactor: move `TR_KEY_speed_limit_down_kebab` handling
* refactor: move `TR_KEY_speed_limit_down_enabled_kebab` handling
* refactor: move `TR_KEY_speed_limit_up_kebab` handling
* refactor: move `TR_KEY_speed_limit_up_enabled_kebab` handling
* refactor: move `TR_KEY_start_added_torrents_kebab` handling
* refactor: move `TR_KEY_tcp_enabled_kebab` handling
* refactor: move `TR_KEY_trash_original_torrent_files_kebab` handling
* refactor: move `TR_KEY_utp_enabled_kebab` handling
* refactor: move `TR_KEY_recently_active_kebab` handling
* refactor: move `TR_KEY_delete_local_data_kebab` handling
* refactor: move `TR_KEY_activity_date_camel` handling
* refactor: move `TR_KEY_added_date_camel` handling
* refactor: move `TR_KEY_bandwidth_priority_camel` handling
* refactor: move `TR_KEY_bytes_completed_camel` handling
* refactor: move `TR_KEY_corrupt_ever_camel` handling
* refactor: move `TR_KEY_date_created_camel` handling
* refactor: move `TR_KEY_desired_available_camel` handling
* refactor: move `TR_KEY_done_date_camel` handling
* refactor: move `TR_KEY_download_dir_camel` handling
* refactor: move `TR_KEY_download_limit_camel` handling
* refactor: move `TR_KEY_download_limited_camel` handling
* refactor: move `TR_KEY_downloaded_ever_camel` handling
* refactor: move `TR_KEY_edit_date_camel` handling
* refactor: move `TR_KEY_error_string_camel` handling
* refactor: move `TR_KEY_eta_idle_camel` handling
* refactor: move `TR_KEY_file_stats_camel` handling
* refactor: move `TR_KEY_file_count_kebab` handling
* refactor: move `TR_KEY_hash_string_camel` handling
* refactor: move `TR_KEY_have_unchecked_camel` handling
* refactor: move `TR_KEY_have_valid_camel` handling
* refactor: move `TR_KEY_honors_session_limits_camel` handling
* refactor: move `TR_KEY_is_finished_camel` handling
* refactor: move `TR_KEY_is_private_camel` handling
* refactor: move `TR_KEY_is_stalled_camel` handling
* refactor: move `TR_KEY_left_until_done_camel` handling
* refactor: move `TR_KEY_magnet_link_camel` handling
* refactor: move `TR_KEY_manual_announce_time_camel` handling
* refactor: move `TR_KEY_max_connected_peers_camel` handling
* refactor: move `TR_KEY_metadata_percent_complete_camel` handling
* refactor: move `TR_KEY_peer_limit_kebab` handling
* refactor: move `TR_KEY_peers_connected_camel` handling
* refactor: move `TR_KEY_peers_from_camel` handling
* refactor: move `TR_KEY_peers_getting_from_us_camel` handling
* refactor: move `TR_KEY_peers_sending_to_us_camel` handling
* refactor: move `TR_KEY_percent_complete_camel` handling
* refactor: move `TR_KEY_percent_done_camel` handling
* refactor: move `TR_KEY_piece_count_camel` handling
* refactor: move `TR_KEY_piece_size_camel` handling
* refactor: move `TR_KEY_primary_mime_type_kebab` handling
* refactor: move `TR_KEY_queue_position_camel` handling
* refactor: move `TR_KEY_rate_download_camel` handling
* refactor: move `TR_KEY_rate_upload_camel` handling
* refactor: move `TR_KEY_recheck_progress_camel` handling
* refactor: move `TR_KEY_seconds_downloading_camel` handling
* refactor: move `TR_KEY_seconds_seeding_camel` handling
* refactor: move `TR_KEY_seed_idle_limit_camel` handling
* refactor: move `TR_KEY_seed_idle_mode_camel` handling
* refactor: move `TR_KEY_seed_ratio_mode_camel` handling
* refactor: move `TR_KEY_size_when_done_camel` handling
* refactor: move `TR_KEY_start_date_camel` handling
* refactor: move `TR_KEY_torrent_file_camel` handling
* refactor: move `TR_KEY_total_size_camel` handling
* refactor: move `TR_KEY_tracker_list_camel` handling
* refactor: move `TR_KEY_tracker_stats_camel` handling
* refactor: move `TR_KEY_upload_limit_camel` handling
* refactor: move `TR_KEY_upload_limited_camel` handling
* refactor: move `TR_KEY_upload_ratio_camel` handling
* refactor: move `TR_KEY_uploaded_ever_camel` handling
* refactor: move `TR_KEY_webseeds_sending_to_us_camel` handling
* refactor: move `TR_KEY_announce_state_camel` handling
* refactor: move `TR_KEY_download_count_camel` handling
* refactor: move `TR_KEY_has_announced_camel` handling
* refactor: move `TR_KEY_has_scraped_camel` handling
* refactor: move `TR_KEY_is_backup_camel` handling
* refactor: move `TR_KEY_last_announce_peer_count_camel` handling
* refactor: move `TR_KEY_last_announce_result_camel` handling
* refactor: move `TR_KEY_last_announce_start_time_camel` handling
* refactor: move `TR_KEY_last_announce_succeeded_camel` handling
* refactor: move `TR_KEY_last_announce_time_camel` handling
* refactor: move `TR_KEY_last_announce_timed_out_camel` handling
* refactor: move `TR_KEY_last_scrape_result_camel` handling
* refactor: move `TR_KEY_last_scrape_start_time_camel` handling
* refactor: move `TR_KEY_last_scrape_succeeded_camel` handling
* refactor: move `TR_KEY_last_scrape_time_camel` handling
* refactor: move `TR_KEY_last_scrape_timed_out_camel` handling
* refactor: move `TR_KEY_leecher_count_camel` handling
* refactor: move `TR_KEY_next_announce_time_camel` handling
* refactor: move `TR_KEY_next_scrape_time_camel` handling
* refactor: move `TR_KEY_scrape_state_camel` handling
* refactor: move `TR_KEY_seeder_count_camel` handling
* refactor: move `TR_KEY_client_is_choked_camel` handling
* refactor: move `TR_KEY_client_is_interested_camel` handling
* refactor: move `TR_KEY_client_name_camel` handling
* refactor: move `TR_KEY_flag_str_camel` handling
* refactor: move `TR_KEY_is_downloading_from_camel` handling
* refactor: move `TR_KEY_is_encrypted_camel` handling
* refactor: move `TR_KEY_is_incoming_camel` handling
* refactor: move `TR_KEY_is_utp_camel` handling
* refactor: move `TR_KEY_is_uploading_to_camel` handling
* refactor: move `TR_KEY_peer_is_choked_camel` handling
* refactor: move `TR_KEY_peer_is_interested_camel` handling
* refactor: move `TR_KEY_rate_to_client_camel` handling
* refactor: move `TR_KEY_rate_to_peer_camel` handling
* refactor: move `TR_KEY_from_cache_camel` handling
* refactor: move `TR_KEY_from_dht_camel` handling
* refactor: move `TR_KEY_from_incoming_camel` handling
* refactor: move `TR_KEY_from_lpd_camel` handling
* refactor: move `TR_KEY_from_ltep_camel` handling
* refactor: move `TR_KEY_from_pex_camel` handling
* refactor: move `TR_KEY_from_pex_camel` handling
* refactor: move `TR_KEY_tracker_add_camel` handling
* refactor: move `TR_KEY_tracker_remove_camel` handling
* refactor: move `TR_KEY_tracker_replace_camel` handling
* refactor: move `TR_KEY_downloaded_bytes_camel` handling
* refactor: move `TR_KEY_files_added_camel` handling
* refactor: move `TR_KEY_seconds_active_camel` handling
* refactor: move `TR_KEY_session_count_camel` handling
* refactor: move `TR_KEY_uploaded_bytes_camel` handling
* refactor: move `TR_KEY_active_torrent_count_camel` handling
* refactor: move `TR_KEY_cumulative_stats_kebab` handling
* refactor: move `TR_KEY_cumulative_stats_kebab` handling
* refactor: move `TR_KEY_download_speed_camel` handling
* refactor: move `TR_KEY_paused_torrent_count_camel` handling
* refactor: move `TR_KEY_torrent_count_camel` handling
* refactor: move `TR_KEY_upload_speed_camel` handling
* refactor: move `TR_KEY_files_unwanted_kebab` handling
* refactor: move `TR_KEY_files_wanted_kebab` handling
* refactor: move `TR_KEY_priority_high_kebab` handling
* refactor: move `TR_KEY_priority_low_kebab` handling
* refactor: move `TR_KEY_priority_normal_kebab` handling
* refactor: move `TR_KEY_port_is_open_kebab` handling
* refactor: move `TR_KEY_torrent_duplicate_kebab` handling
* refactor: move `TR_KEY_torrent_added_kebab` handling
* refactor: move `TR_KEY_memory_bytes_kebab` handling
* refactor: move `TR_KEY_memory_units_kebab` handling
* refactor: move `TR_KEY_size_bytes_kebab` handling
* refactor: move `TR_KEY_size_units_kebab` handling
* refactor: move `TR_KEY_speed_bytes_kebab` handling
* refactor: move `TR_KEY_speed_units_kebab` handling
* refactor: remove DoneCb
* perf: adjust reserve capacity
2025-12-24 13:29:59 -06:00
Charles Kerr
62c362eacb
fix: clang-tidy warnings in Qt client ( #7981 )
...
* fix: readability-identifier-naming
* fix: misc-unused-using-decls
* fix: google-readability-braces-around-statements,hicpp-braces-around-statements,readability-braces-around-statements
* fix: cert-err58-cpp
* fix: bugprone-unchecked-optional-access
* Revert "fix: cert-err58-cpp"
This reverts commit 6e6d97228f .
* fix: better to keep QStringLiteral; disable spurious cert-err58-cpp warning
2025-12-22 09:34:04 -06:00
Charles Kerr
e9c847d965
perf: api_compat::convert() operates inplace rather than creating a new variant ( #7973 )
...
* perf: api_compat::convert() operates inplace rather than creating a new variant
* refactor: update bandwidth groups calls
2025-12-21 06:22:05 -06:00
Charles Kerr
ed827dd1a1
feat: Qt client now formats RPC requests in the RPC server's preferred style ( #7963 )
...
* feat: Qt client now formats RPC requests in the RPC server's preferred style
* add macro to build TrRpcVersionSemver
Co-authored-by: Yat Ho <lagoho7@gmail.com >
2025-12-20 11:05:35 -06:00
Charles Kerr
804fb20a80
refactor: more JSON-RPC migration in transmission-qt ( #7959 )
...
* refactor: use api_compat::convert_incoming_data() and convert_outgoing_data() in RpcClient
* refactor: use convert_outgoing_data() when saving settings.json in Prefs::~Prefs
* refactor: remove all kebab, camel keys from qt client
* refactor: rename RpcResponse.result to RpcResponse.errmsg
* refactor: parse jsonrpc responses
* refactor: build RPC requests in JSON-RPC 2.0
* fix: Qt5 build error
2025-12-19 07:51:52 -06:00
Charles Kerr
e35527cb4a
refactor: minor cleanup in RpcClient.cc ( #7951 )
...
* refactor: RpcClient::sendNetworkRequest() takes a QByteArray body arg
* refactor: RpcClient::sendLocalRequest() takes a tr_variant const& req arg
* refactor: move RpcClient::getNextTag() into an anonymous namespace
* refactor: merge RpcClient::exec() and RpcClient::sendRequest()
* refactor: remove unnecessary heap allocation in RpcClient::networkRequestFinished()
2025-12-18 10:29:08 -06:00
Charles Kerr
0979bbcc3f
refactor: intern RPC method names ( #7892 )
...
* refactor: add quarks for the RPC method names
* update tr_quark_convert() to handle RPC method names
* refactor: use interned keys for RPC method names
* test: add torrentGetLegacy test
* refactor: use interned keys for RPC method names in tr-qt
* refactor: use interned keys for RPC method names in tr-remote
* refactor: use interned keys for RPC method names in tests
* refactor: use interned keys for RPC method names in tr-gtk
* chore: fix readability-identifier-naming regression
2025-12-09 11:48:09 -06:00
Yat Ho
c215de34d5
chore: move away from fmt/core.h ( #7557 )
2025-05-06 01:01:12 -05:00
Cœur
edc59ba5d8
fix compatibility with clang-format 18 ( #6690 )
...
* fix clang-format
* compatibility with clang-format 17-18
2024-03-15 00:17:10 -05:00
Charles Kerr
a90d0fce2b
refactor: inline simple getters in qt client ( #6621 )
...
* refactor: make RpcClient::url() constexpr
* refactor: make Session::getRemoteUrl() constexpr
* refactor: make RpcQueue::setTolerateErrors() constexpr
* refactor: make RpcClient::isLocal() constexpr
* refactor: make Session::isLocal() constexpr
* refactor: make Session::isServer() constexpr
* refactor: make PathButton::label() constexpr
* chore: remove accidentally-committed makelog file
2024-02-18 18:48:27 -06:00
Charles Kerr
22cde5d4b9
refactor: use new tr_variant API in rpcimpl ( #6456 )
...
* refactor: tr_rpc_request_exec_json takes a std::function callback
* refactor: tr_rpc_request_exec_json callback takes a tr_variant&&
* refactor: use new tr_variant API in rpcimpl.cc
* refactor: tr_rpc_request_exec_json() now takes a const& to the request
* fixup! refactor: use new tr_variant API in rpcimpl.cc
* chore: rename function to tr_rpc_request_exec()
* chore: remove unused DetailsDialog::Impl::build_torrent_ids_variant_list()
* refactor: minor copyediting in rpcimpl.cc getTorrents()
* refactor: split handler methods between sync, async
* refactor: remove unused args_out param from AsyncHandlers
* chore: fix new readability-inconsistent-declaration-parameter-name warning
2024-01-02 22:14:43 -06:00
Charles Kerr
64d9d57363
chore: fix minor clang-tidy warnings ( #6275 )
2023-11-21 09:02:03 -06:00
Julien
8ac323d5d6
chore: removed copyright timespans in headers ( #4850 )
2023-11-01 16:11:11 -05:00
Cœur
1722f00777
chore: apply clang-format version 17.0.1 ( #6054 )
2023-10-01 18:45:52 -05:00
Charles Kerr
5837603b6f
refactor: make tr_variant follow RAII ( #5923 )
2023-08-20 23:15:23 -05:00
Charles Kerr
a4d205612a
refactor: add tr_variant_serde ( #5903 )
2023-08-17 11:02:45 -05:00
Charles Kerr
d7473f22ed
refactor: prefer direct-brace-initialization ( #5803 )
2023-07-18 10:20:17 -05:00
Charles Kerr
2fa693170a
refactor: prefer std::unordred_map over QHash ( #5701 )
...
* refactor: use std::unordered_map instead of QHash in RpcClient.cc
* chore remove unused #include <QHash>
* refactor: use std::unordered_map instead of QHash in FileTreeItem
2023-06-30 14:36:08 -05:00
Charles Kerr
7d86d67bc7
chore: prefer fmt/core.h over fmt/format.h ( #5404 )
2023-04-16 15:34:19 -05:00
Charles Kerr
25f38d5ff3
fix: wrong tier value in torrent get tracker stat response ( #5274 )
2023-03-21 20:23:08 -05:00
Charles Kerr
8fc904617b
fix: correctly handle batch-adding trackers to multiple torrents ( #5122 )
2023-03-02 00:33:49 -06:00
Julien
4b8cfa2e57
chore: update copyrights to 2023 ( #4834 )
2023-02-11 14:49:42 -06:00
Charles Kerr
22c14c9266
fix: sonarcloud warnings ( #4180 )
2022-11-15 10:25:12 -06:00
Charles Kerr
9280bf3475
chore: re-enable qt clang tidy warnings ( #3791 )
2022-09-08 18:26:18 -05:00
Charles Kerr
072bb0322c
refactor: remove tr_quark_get_string() ( #3728 )
2022-08-28 16:17:07 -05:00
Charles Kerr
bfec98c323
refactor: avoid tr_new() in transmission-remote ( #3665 )
2022-08-17 20:25:42 -05:00
Charles Kerr
6278ea7017
refactor: reduce use of tr_malloc / tr_free ( #3652 )
...
* refactor: avoid tr_new in macos Torrent.trashDataFile
* refactor: avoid tr_new in maco PiecesView
* refactor: avoid tr_new in qt createVariant()
2022-08-16 12:03:09 -05:00
Charles Kerr
868fc1ab78
Refactor/tr variant from buf ( #3592 )
...
* refactor: use std::string in tr_watchdir_inotify_on_event()
* refactor: add template tr_variantFromBuf() variant
if it has .data() and .size() it is good
2022-08-05 16:12:45 -05:00
Charles Kerr
ec79a2a888
fix: clang-tidy misc-const-correctness warnings ( #3529 )
2022-07-27 09:03:13 -05:00
Charles Kerr
8afbfecadb
refactor: re-enable some clang-tidy checks in qt/ ( #2585 )
...
* chore: re-enable readability-static-accessed-through-instance test in qt
* chore: re-enable clang-diagnostic-nonportable-system-include-path check in qt/
* chore: re-enable clang-diagnostic-undefined-reinterpret-cast test in qt/
* chore: re-enable cert-err58-cpp check in qt/
* chore: re-enable clang-diagnostic-switch-enum check in qt/
* chore: re-enable modernize-return-braced-init-list check in qt/
* chore: re-enable cppcoreguidelines-pro-type-static-cast-downcast check in qt/
* chore: re-enable cppcoreguidelines-pro-type-cstyle-cast check in qt/
* refactor: re-enable cppcoreguidelines-init-variables check in qt/
* chore: re-enable cppcoreguidelines-pro-type-vararg check in qt/
* chore: remove explicit disable of clang-diagnostic-old-style-cast check in qt/
* chore: re-enable bugprone-implicit-widening-of-multiplication-result check in qt/
2022-02-07 21:56:04 -06:00
Charles Kerr
ebb2ab6aee
chore: update license spdx abbreviations ( #2582 )
...
Use SPDX license list 3.0 terminology: replace deprecated identifiers
GPL-2.0" and "GPL-3.0" with "GPL-3.0-only" and "GPL-3.0-only".
2022-02-07 10:25:02 -06:00
Charles Kerr
4455673bed
fix: some use-init-statement sonarcloud warnings ( #2566 )
2022-02-03 07:02:11 -06:00
Charles Kerr
878405f862
Revert "fix: sonarcloud ( #2558 )" ( #2562 )
...
This reverts commit 8b9483f7fb .
2022-02-01 11:30:51 -06:00
Charles Kerr
8b9483f7fb
fix: sonarcloud ( #2558 )
...
* fix: add const modifier for functions
* fix: many sonarcloud use-init-statement warnings
2022-01-31 22:46:27 -06:00
Charles Kerr
df1cca9b57
chore: update copyright years, make notices consistent ( #2463 )
2022-01-20 12:27:56 -06:00
Charles Kerr
b0ee4007ff
refactor: include cleanups ( #2392 )
...
* refactor: include <memory> when using shared_ptr or unique_ptr
* refactor: include <cstdio> iff we use it
* refactor: include <cstring> iff we use it
* refactor: include <cstdlib> iff we use it
* refactor: include <string_view> or <string> iff we use it
* refactor: include <array> iff we use it
* refactor: include <ctime> iff we use it
* refactor: include <cctype> iff we use it
* refactor: misc #include cleanups in libtransmission
2022-01-12 20:13:58 -06:00
Charles Kerr
fa35b8ad39
refactor: use std::string in tr_variantToStr() ( #2351 )
...
* refactor: use std::string in tr_variantToStr()
2021-12-27 16:47:25 -06:00
Charles Kerr
a79a868257
refactor: make tr_variantFromBuf() public ( #2187 )
...
* refactor: add tr_variantFromBuf() and support inplace json/benc parsing
2021-11-17 23:37:35 -06:00
Charles Kerr
250a2e3cc5
refactor: remove unused pieces of str to variant ( #2166 )
...
* feat: add tr_variantInitStrView()
* refactor: remove unused function tr_variantFromJsonFull
* refactor: tr_variantFromJson() now takes a string_view
* refactor: tr_variantFromBenc() now takes a string_view
* refactor: remove unused source arg from tr_variantFromBencFull()
* refactor: make tr_variantFromBuf() private
2021-11-15 01:21:57 -06:00
Mike Gelfand
db3d40d0ed
Switch to clang-format for code formatting, include Mac client
2021-08-16 00:38:29 +03:00
Charles Kerr
9d313a8816
sonarcloud warnings 9 ( #1511 )
...
* refactor: const correctness
* refactor: fix some implicit conversions
* refactor: make local pointers const if their objects are not modified
* refactor: do not cast away const in torrent-cell-renderer
* refactor: remove call to deprecated gtk_icon_size_lookup_for_settings
* refactor: member functions that do not mutate their objects should be declared const
* chore: do not end comments with a semicolon
2020-11-08 21:31:02 -06:00
Charles Kerr
0bfbc3eba7
Sonarcloud warnings 4 ( #1499 )
...
* chore: fix some sonarcloud html warnings (e.g. deprecated attribute use)
* chore: uppercase literal suffixes
* chore: remove redundant casts
* chore: remove commented-out code
* chore: use qInfo() instead of std::cerr
2020-11-02 09:16:12 -06:00