D26432: Port endl to std::cout/std::cerr or "\n" + flush when necessary. In qt5.15 endl is namespaced.

Anthony Fieroni noreply at phabricator.kde.org
Sun Jan 5 15:27:10 GMT 2020


anthonyfieroni added inline comments.

INLINE COMMENTS

> kconfigtest.cpp:533-542
> +        out << "[Test Group]\n"
> +            << "homePath=$HOME/foo\n"
> +            << "homePath2=file://$HOME/foo\n"
> +            << "withSlash=$WITHSLASH/foo\n"
> +            << "withSlash2=$WITHSLASH\n"
> +            << "withBraces[$e]=file://${HOME}/foo\n"
> +            << "URL[$e]=file://${HOME}/foo\n"

When it has only strings you can use `R"()"`
https://en.cppreference.com/w/cpp/language/string_literal

REPOSITORY
  R237 KConfig

REVISION DETAIL
  https://phabricator.kde.org/D26432

To: mlaurent, dfaure
Cc: anthonyfieroni, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200105/9b630892/attachment.html>


More information about the Kde-frameworks-devel mailing list