On jeudi 17 février 2022 07:36:10 CET mark_at_yahoo via Rosegarden-devel 
wrote:
> #if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
>          if (path2.back() != '/')
> #else
>          if (path2[path2.size() - 1] != '/')
> #endif

This can be written as if (!path2.endsWith('/')) in all Qt versions.

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5





_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to