# HG changeset patch # User Paper # Date 1716155332 14400 # Node ID f4538a4c91ba94dddb00ebbedf3ebb68fc9706b6 # Parent 91ac90a340038e1225721369ca123b1d0a1cecc1 cleanup: remove extraneous executable flags diff -r 91ac90a34003 -r f4538a4c91ba .builds/linux.yml diff -r 91ac90a34003 -r f4538a4c91ba .clang-format diff -r 91ac90a34003 -r f4538a4c91ba .hgignore diff -r 91ac90a34003 -r f4538a4c91ba INSTALL diff -r 91ac90a34003 -r f4538a4c91ba LICENSE diff -r 91ac90a34003 -r f4538a4c91ba Makefile.am diff -r 91ac90a34003 -r f4538a4c91ba README diff -r 91ac90a34003 -r f4538a4c91ba configure.ac diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/.clang-format diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/.hgignore diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/LICENSE.MIT diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/Makefile.am diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/configure.ac diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/data/players.anisthesia diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/fd.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/fd/bsd.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/fd/proc.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/fd/win32.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/fd/xnu.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/media.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/player.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/strategies.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/types.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/win.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/win/quartz.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/win/win32.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/include/animone/win/x11.h diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/src/animone.cc diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/src/fd.cc diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/src/player.cc diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/src/strategist.cc diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/src/util.cc diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/src/util/win32.cc diff -r 91ac90a34003 -r f4538a4c91ba dep/animone/src/win.cc diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/LICENSE diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/Makefile.am diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/README.md diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/anitomy.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/anitomy.h diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/element.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/element.h diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/keyword.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/keyword.h diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/options.h diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/parser.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/parser.h diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/parser_helper.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/parser_number.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/string.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/string.h diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/token.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/token.h diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/tokenizer.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/anitomy/tokenizer.h diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/configure.ac diff -r 91ac90a34003 -r f4538a4c91ba dep/anitomy/test/data.json diff -r 91ac90a34003 -r f4538a4c91ba dep/json/json.hpp diff -r 91ac90a34003 -r f4538a4c91ba dep/json/json_fwd.hpp diff -r 91ac90a34003 -r f4538a4c91ba dep/mini/ini.h diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/LICENSE.md diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/Makefile.am diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/configure.ac diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/images/dom_tree.png diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/images/vs2005_link1.png diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/images/vs2005_link2.png diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/images/vs2005_pch1.png diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/images/vs2005_pch2.png diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/images/vs2005_pch3.png diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/images/vs2005_pch4.png diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/images/vs2010_link1.png diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/images/vs2010_link2.png diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/manual.html diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/quickstart.html diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/character.xml diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/custom_memory_management.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/include.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/load_error_handling.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/load_file.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/load_memory.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/load_options.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/load_stream.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/modify_add.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/modify_base.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/modify_remove.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/save_custom_writer.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/save_declaration.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/save_file.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/save_options.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/save_stream.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/save_subtree.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/text.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/transitions.xml diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/traverse_base.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/traverse_iter.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/traverse_predicate.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/traverse_rangefor.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/traverse_walker.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/tree.xml diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/weekly-shift_jis.xml diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/weekly-utf-16.xml diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/weekly-utf-8.xml diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/xgconsole.xml diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/xpath_error.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/xpath_query.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/xpath_select.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/docs/samples/xpath_variables.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/readme.txt diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/cocoapods_push.sh diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/natvis/pugixml.natvis diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/natvis/pugixml_compact.natvis diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/nuget/build/native/pugixml-propertiesui.xml diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/nuget/build/native/pugixml.targets diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/nuget/pugixml.nuspec diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/nuget_build.ps1 diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/premake4.lua diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml-config.cmake.in diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml.pc.in diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml.podspec diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml.xcodeproj/project.pbxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_airplay.mkf diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_codeblocks.cbp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_codelite.project diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_dll.rc diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2005.vcproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2005_static.vcproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2008.vcproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2008_static.vcproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2010.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2010_static.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2013.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2013_static.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2015.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2015_static.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2017.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2017_static.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2019.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2019_static.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2022.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/scripts/pugixml_vs2022_static.vcxproj diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/src/pugiconfig.hpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/src/pugixml.cpp diff -r 91ac90a34003 -r f4538a4c91ba dep/pugixml/src/pugixml.hpp diff -r 91ac90a34003 -r f4538a4c91ba dep/semver/semver.hpp diff -r 91ac90a34003 -r f4538a4c91ba include/gui/pages/seasons.h diff -r 91ac90a34003 -r f4538a4c91ba include/gui/translate/anilist.h diff -r 91ac90a34003 -r f4538a4c91ba include/gui/translate/anime.h diff -r 91ac90a34003 -r f4538a4c91ba include/gui/widgets/anime_button.h diff -r 91ac90a34003 -r f4538a4c91ba include/gui/widgets/elided_label.h diff -r 91ac90a34003 -r f4538a4c91ba include/gui/widgets/poster.h diff -r 91ac90a34003 -r f4538a4c91ba include/sys/glib/dark_theme.h diff -r 91ac90a34003 -r f4538a4c91ba include/sys/osx/dark_theme.h diff -r 91ac90a34003 -r f4538a4c91ba include/sys/osx/permissions.h diff -r 91ac90a34003 -r f4538a4c91ba include/sys/win32/dark_theme.h diff -r 91ac90a34003 -r f4538a4c91ba m4/m4_ax_cxx_compile_stdcxx.m4 diff -r 91ac90a34003 -r f4538a4c91ba rc/animone.qrc diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/arrow-circle-315.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/calendar-next.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/calendar-previous.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/calendar.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/category.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/chart.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/clock-history-frame.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/cross-button.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/document-list.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/feed.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/film.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/gear.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/magnifier.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/navigation-270-button.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/plus-button.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/sort-quantity-descending.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/16x16/ui-scroll-pane-detail.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/24x24/application-export.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/24x24/application-sidebar-list.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/24x24/arrow-circle-double-135.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/24x24/feed.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/24x24/folder-open.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/24x24/gear.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/24x24/globe.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/24x24/inbox-film.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/24x24/megaphone.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/24x24/question.png diff -r 91ac90a34003 -r f4538a4c91ba rc/icons/icons.qrc diff -r 91ac90a34003 -r f4538a4c91ba rc/locale/en_GB.ts diff -r 91ac90a34003 -r f4538a4c91ba rc/locale/es.ts diff -r 91ac90a34003 -r f4538a4c91ba rc/sys/linux/Minori.desktop diff -r 91ac90a34003 -r f4538a4c91ba rc/sys/linux/Minori.png diff -r 91ac90a34003 -r f4538a4c91ba rc/sys/osx/Minori.app/Contents/Info.plist diff -r 91ac90a34003 -r f4538a4c91ba rc/sys/osx/Minori.app/Contents/PkgInfo diff -r 91ac90a34003 -r f4538a4c91ba rc/sys/osx/Minori.app/Contents/Resources/Minori.icns diff -r 91ac90a34003 -r f4538a4c91ba rc/sys/win32/dark/dark.qrc diff -r 91ac90a34003 -r f4538a4c91ba rc/sys/win32/dark/dark.qss diff -r 91ac90a34003 -r f4538a4c91ba rc/sys/win32/favicon.ico diff -r 91ac90a34003 -r f4538a4c91ba rc/sys/win32/resource.rc diff -r 91ac90a34003 -r f4538a4c91ba rc/sys/win32/version.rc diff -r 91ac90a34003 -r f4538a4c91ba scripts/osx/deploy_build.sh diff -r 91ac90a34003 -r f4538a4c91ba scripts/win32/deploy_build.sh diff -r 91ac90a34003 -r f4538a4c91ba src/core/json.cc diff -r 91ac90a34003 -r f4538a4c91ba src/core/time.cc --- a/src/core/time.cc Sun May 19 15:56:20 2024 -0400 +++ b/src/core/time.cc Sun May 19 17:48:52 2024 -0400 @@ -49,6 +49,8 @@ return result; } +/* "amount" does not have to be in seconds, and can be any unit if the correct ratio to seconds + * is passed to "unit_in_seconds" (for example, if the input is minutes, pass 60.0) */ std::string GetSecondsAsAbsoluteString(Units unit_cutoff, Timestamp amount, double unit_in_seconds) { /* avoid calculating this twice */ const double years_conv = (31556952.0 / unit_in_seconds); @@ -93,7 +95,7 @@ int64_t GetSystemTime() { static_assert(sizeof(int64_t) >= sizeof(time_t)); time_t t = std::time(nullptr); - return reinterpret_cast(t); + return static_cast(t); } } // namespace Time diff -r 91ac90a34003 -r f4538a4c91ba src/gui/pages/history.cc diff -r 91ac90a34003 -r f4538a4c91ba src/gui/translate/anilist.cc diff -r 91ac90a34003 -r f4538a4c91ba src/gui/widgets/clickable_label.cc diff -r 91ac90a34003 -r f4538a4c91ba src/gui/widgets/optional_date.cc diff -r 91ac90a34003 -r f4538a4c91ba src/services/services.cc