changeset 306:f4538a4c91ba

cleanup: remove extraneous executable flags
author Paper <paper@paper.us.eu.org>
date Sun, 19 May 2024 17:48:52 -0400
parents 91ac90a34003
children 8769c5d50b06
files .builds/linux.yml .clang-format .hgignore INSTALL LICENSE Makefile.am README configure.ac dep/animone/.clang-format dep/animone/.hgignore dep/animone/LICENSE.MIT dep/animone/Makefile.am dep/animone/configure.ac dep/animone/data/players.anisthesia dep/animone/include/animone.h dep/animone/include/animone/fd.h dep/animone/include/animone/fd/bsd.h dep/animone/include/animone/fd/proc.h dep/animone/include/animone/fd/win32.h dep/animone/include/animone/fd/xnu.h dep/animone/include/animone/media.h dep/animone/include/animone/player.h dep/animone/include/animone/strategies.h dep/animone/include/animone/types.h dep/animone/include/animone/win.h dep/animone/include/animone/win/quartz.h dep/animone/include/animone/win/win32.h dep/animone/include/animone/win/x11.h dep/animone/src/animone.cc dep/animone/src/fd.cc dep/animone/src/player.cc dep/animone/src/strategist.cc dep/animone/src/util.cc dep/animone/src/util/win32.cc dep/animone/src/win.cc dep/anitomy/LICENSE dep/anitomy/Makefile.am dep/anitomy/README.md dep/anitomy/anitomy/anitomy.cpp dep/anitomy/anitomy/anitomy.h dep/anitomy/anitomy/element.cpp dep/anitomy/anitomy/element.h dep/anitomy/anitomy/keyword.cpp dep/anitomy/anitomy/keyword.h dep/anitomy/anitomy/options.h dep/anitomy/anitomy/parser.cpp dep/anitomy/anitomy/parser.h dep/anitomy/anitomy/parser_helper.cpp dep/anitomy/anitomy/parser_number.cpp dep/anitomy/anitomy/string.cpp dep/anitomy/anitomy/string.h dep/anitomy/anitomy/token.cpp dep/anitomy/anitomy/token.h dep/anitomy/anitomy/tokenizer.cpp dep/anitomy/anitomy/tokenizer.h dep/anitomy/configure.ac dep/anitomy/test/data.json dep/json/json.hpp dep/json/json_fwd.hpp dep/mini/ini.h dep/pugixml/LICENSE.md dep/pugixml/Makefile.am dep/pugixml/configure.ac dep/pugixml/docs/images/dom_tree.png dep/pugixml/docs/images/vs2005_link1.png dep/pugixml/docs/images/vs2005_link2.png dep/pugixml/docs/images/vs2005_pch1.png dep/pugixml/docs/images/vs2005_pch2.png dep/pugixml/docs/images/vs2005_pch3.png dep/pugixml/docs/images/vs2005_pch4.png dep/pugixml/docs/images/vs2010_link1.png dep/pugixml/docs/images/vs2010_link2.png dep/pugixml/docs/manual.html dep/pugixml/docs/quickstart.html dep/pugixml/docs/samples/character.xml dep/pugixml/docs/samples/custom_memory_management.cpp dep/pugixml/docs/samples/include.cpp dep/pugixml/docs/samples/load_error_handling.cpp dep/pugixml/docs/samples/load_file.cpp dep/pugixml/docs/samples/load_memory.cpp dep/pugixml/docs/samples/load_options.cpp dep/pugixml/docs/samples/load_stream.cpp dep/pugixml/docs/samples/modify_add.cpp dep/pugixml/docs/samples/modify_base.cpp dep/pugixml/docs/samples/modify_remove.cpp dep/pugixml/docs/samples/save_custom_writer.cpp dep/pugixml/docs/samples/save_declaration.cpp dep/pugixml/docs/samples/save_file.cpp dep/pugixml/docs/samples/save_options.cpp dep/pugixml/docs/samples/save_stream.cpp dep/pugixml/docs/samples/save_subtree.cpp dep/pugixml/docs/samples/text.cpp dep/pugixml/docs/samples/transitions.xml dep/pugixml/docs/samples/traverse_base.cpp dep/pugixml/docs/samples/traverse_iter.cpp dep/pugixml/docs/samples/traverse_predicate.cpp dep/pugixml/docs/samples/traverse_rangefor.cpp dep/pugixml/docs/samples/traverse_walker.cpp dep/pugixml/docs/samples/tree.xml dep/pugixml/docs/samples/weekly-shift_jis.xml dep/pugixml/docs/samples/weekly-utf-16.xml dep/pugixml/docs/samples/weekly-utf-8.xml dep/pugixml/docs/samples/xgconsole.xml dep/pugixml/docs/samples/xpath_error.cpp dep/pugixml/docs/samples/xpath_query.cpp dep/pugixml/docs/samples/xpath_select.cpp dep/pugixml/docs/samples/xpath_variables.cpp dep/pugixml/readme.txt dep/pugixml/scripts/cocoapods_push.sh dep/pugixml/scripts/natvis/pugixml.natvis dep/pugixml/scripts/natvis/pugixml_compact.natvis dep/pugixml/scripts/nuget/build/native/pugixml-propertiesui.xml dep/pugixml/scripts/nuget/build/native/pugixml.targets dep/pugixml/scripts/nuget/pugixml.nuspec dep/pugixml/scripts/nuget_build.ps1 dep/pugixml/scripts/premake4.lua dep/pugixml/scripts/pugixml-config.cmake.in dep/pugixml/scripts/pugixml.pc.in dep/pugixml/scripts/pugixml.podspec dep/pugixml/scripts/pugixml.xcodeproj/project.pbxproj dep/pugixml/scripts/pugixml_airplay.mkf dep/pugixml/scripts/pugixml_codeblocks.cbp dep/pugixml/scripts/pugixml_codelite.project dep/pugixml/scripts/pugixml_dll.rc dep/pugixml/scripts/pugixml_vs2005.vcproj dep/pugixml/scripts/pugixml_vs2005_static.vcproj dep/pugixml/scripts/pugixml_vs2008.vcproj dep/pugixml/scripts/pugixml_vs2008_static.vcproj dep/pugixml/scripts/pugixml_vs2010.vcxproj dep/pugixml/scripts/pugixml_vs2010_static.vcxproj dep/pugixml/scripts/pugixml_vs2013.vcxproj dep/pugixml/scripts/pugixml_vs2013_static.vcxproj dep/pugixml/scripts/pugixml_vs2015.vcxproj dep/pugixml/scripts/pugixml_vs2015_static.vcxproj dep/pugixml/scripts/pugixml_vs2017.vcxproj dep/pugixml/scripts/pugixml_vs2017_static.vcxproj dep/pugixml/scripts/pugixml_vs2019.vcxproj dep/pugixml/scripts/pugixml_vs2019_static.vcxproj dep/pugixml/scripts/pugixml_vs2022.vcxproj dep/pugixml/scripts/pugixml_vs2022_static.vcxproj dep/pugixml/src/pugiconfig.hpp dep/pugixml/src/pugixml.cpp dep/pugixml/src/pugixml.hpp dep/semver/semver.hpp include/gui/pages/seasons.h include/gui/translate/anilist.h include/gui/translate/anime.h include/gui/widgets/anime_button.h include/gui/widgets/elided_label.h include/gui/widgets/poster.h include/sys/glib/dark_theme.h include/sys/osx/dark_theme.h include/sys/osx/permissions.h include/sys/win32/dark_theme.h m4/m4_ax_cxx_compile_stdcxx.m4 rc/animone.qrc rc/icons/16x16/arrow-circle-315.png rc/icons/16x16/calendar-next.png rc/icons/16x16/calendar-previous.png rc/icons/16x16/calendar.png rc/icons/16x16/category.png rc/icons/16x16/chart.png rc/icons/16x16/clock-history-frame.png rc/icons/16x16/cross-button.png rc/icons/16x16/document-list.png rc/icons/16x16/feed.png rc/icons/16x16/film.png rc/icons/16x16/gear.png rc/icons/16x16/magnifier.png rc/icons/16x16/navigation-270-button.png rc/icons/16x16/plus-button.png rc/icons/16x16/sort-quantity-descending.png rc/icons/16x16/ui-scroll-pane-detail.png rc/icons/24x24/application-export.png rc/icons/24x24/application-sidebar-list.png rc/icons/24x24/arrow-circle-double-135.png rc/icons/24x24/feed.png rc/icons/24x24/folder-open.png rc/icons/24x24/gear.png rc/icons/24x24/globe.png rc/icons/24x24/inbox-film.png rc/icons/24x24/megaphone.png rc/icons/24x24/question.png rc/icons/icons.qrc rc/locale/en_GB.ts rc/locale/es.ts rc/sys/linux/Minori.desktop rc/sys/linux/Minori.png rc/sys/osx/Minori.app/Contents/Info.plist rc/sys/osx/Minori.app/Contents/PkgInfo rc/sys/osx/Minori.app/Contents/Resources/Minori.icns rc/sys/win32/dark/dark.qrc rc/sys/win32/dark/dark.qss rc/sys/win32/favicon.ico rc/sys/win32/resource.rc rc/sys/win32/version.rc scripts/osx/deploy_build.sh scripts/win32/deploy_build.sh src/core/json.cc src/core/time.cc src/gui/pages/history.cc src/gui/translate/anilist.cc src/gui/widgets/clickable_label.cc src/gui/widgets/optional_date.cc src/services/services.cc
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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<int64_t>(t);
+	return static_cast<int64_t>(t);
 }
 
 } // namespace Time