1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-13 07:33:02 +00:00
transmission/gtk
Dzmitry Neviadomski 7e87adcd91
Fix building transmission with C++23 (#6832)
* fix: operator== should return bool in tr_strbuf

Fixes build error with C++20/C++23

error: return type 'auto' of selected 'operator==' function for rewritten '!=' comparison is not 'bool'

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* fix: explicitly specify Blocklist::size() return type as size_t

Fixes building with C++20/C++23
error: no matching function for call to 'size'
function 'size' with deduced return type cannot be used before it is defined

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* fix: wrap runtime format strings with fmt::runtime in library, daemon and cli

fmt::format_string ctor is consteval with C++20
See https://github.com/fmtlib/fmt/issues/2438

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* fix: wrap runtime format strings with fmt::runtime for GTK client

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* fix: allow to override C and CXX standard via cmdline or env

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* fix: add job to check if transmission compiles with C++23

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* Address code review by mikedld

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* fix new found fmt build errors

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* Address code review by tearfur

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

* fix: make tr_net_init_mgr singleton buildable with C++23

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>

---------

Signed-off-by: Dzmitry Neviadomski <nevack.d@gmail.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2025-03-10 13:08:57 -05:00
..
screenshots Update GTK screenshot (#5660) 2023-06-23 14:50:07 -05:00
ui Feature/default focus (#7102) 2024-12-12 23:03:28 +00:00
.clang-format perf: prefer small containers (#6542) 2024-01-27 09:33:12 -06:00
.clang-tidy fix: more clang-tidy warnings (#6608) 2024-02-17 13:31:49 -06:00
Actions.cc fix: misc-include-cleaner clang-tidy warnings (#6502) 2024-01-07 14:21:05 -06:00
Actions.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
Application.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
Application.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
CMakeLists.txt fix: Qt build missing an icon (#6683) 2024-07-18 02:12:18 +01:00
DetailsDialog.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
DetailsDialog.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
Dialogs.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
Dialogs.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
DynamicPropertyStore.h fix: more clang-tidy warnings (#6608) 2024-02-17 13:31:49 -06:00
FaviconCache.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
FileList.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
FileList.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
FilterBar.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
FilterBar.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
FilterBase.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
FilterBase.hh chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
FilterListModel.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
FilterListModel.hh fix: more clang-tidy warnings (#6608) 2024-02-17 13:31:49 -06:00
Flags.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
FreeSpaceLabel.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
FreeSpaceLabel.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
GtkCompat.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
HigWorkarea.h fix: more clang-tidy warnings (#6608) 2024-02-17 13:31:49 -06:00
IconCache.cc chore: fix minor clang-tidy warnings (#6275) 2023-11-21 09:02:03 -06:00
IconCache.h Include individual headers (GTK client) (#4477) 2022-12-27 01:43:20 +00:00
ListModelAdapter.cc chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
ListModelAdapter.h fix: performance-enum-size warnings (#6504) 2024-01-08 08:32:58 -06:00
main.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
MainWindow.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
MainWindow.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
MakeDialog.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
MakeDialog.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
MessageLogWindow.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
MessageLogWindow.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
my-valgrind.sh Refactor shell scripts with syntax and styling fixes 2019-01-16 03:22:29 +08:00
Notify.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
Notify.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
OptionsDialog.cc refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
OptionsDialog.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
PathButton.cc refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
PathButton.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
Percents.cc fix: misc-include-cleaner clang-tidy warnings (#6502) 2024-01-07 14:21:05 -06:00
Percents.h Switch to list view for torrents list (GTK 4) (#5858) 2023-08-06 04:26:29 +01:00
Prefs.cc fix: app defaults should override libtransmission defaults (#6495) 2024-01-06 10:10:14 -06:00
Prefs.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
PrefsDialog.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
PrefsDialog.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
RelocateDialog.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
RelocateDialog.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
Session.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
Session.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
SorterBase.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
SorterBase.hh chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
SortListModel.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
SortListModel.hh chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
StatsDialog.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
StatsDialog.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
SystemTrayIcon.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
SystemTrayIcon.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
Torrent.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
Torrent.h fix: performance-enum-size warnings (#6504) 2024-01-08 08:32:58 -06:00
TorrentCellRenderer.cc refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
TorrentCellRenderer.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00
TorrentFilter.cc perf: prefer small containers (#6542) 2024-01-27 09:33:12 -06:00
TorrentFilter.h fix: performance-enum-size warnings (#6504) 2024-01-08 08:32:58 -06:00
TorrentSorter.cc perf: prefer small containers (#6542) 2024-01-27 09:33:12 -06:00
TorrentSorter.h chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
transmission-gtk.1 chore: removed copyright timespans in headers (#4850) 2023-11-01 16:11:11 -05:00
transmission-gtk.desktop.in cmake: replace intltool with gettext 2018-04-18 09:25:13 +00:00
transmission-gtk.metainfo.xml.in chore: add Add <launchable> tag to GTK client metainfo (#6720) 2024-04-01 17:29:36 -05:00
transmission-ui.css GTK client accessibility improvements (#7119) 2024-09-14 02:34:39 +01:00
transmission-ui.xml Switch to Gtk::Builder for all UI in GTK client (#3781) 2022-09-08 01:25:04 +03:00
transmission.gresource.xml fix: Qt build missing an icon (#6683) 2024-07-18 02:12:18 +01:00
transmission.rc fix: Qt build missing an icon (#6683) 2024-07-18 02:12:18 +01:00
Utils.cc Fix building transmission with C++23 (#6832) 2025-03-10 13:08:57 -05:00
Utils.h refactor: remove TR_DISABLE_COPY_MOVE macro (#7344) 2024-12-29 00:15:39 -06:00