44 *
55 * This file is part of ABCg (https://github.com/hbatagelo/abcg).
66 *
7- * @copyright (c) 2021--2023 Harlen Batagelo. All rights reserved.
7+ * @copyright (c) 2021--2026 Harlen Batagelo. All rights reserved.
88 * This project is released under the MIT License.
99 */
1010
@@ -46,7 +46,7 @@ abcg::RuntimeError::RuntimeError(std::string_view what,
4646std::string
4747abcg::RuntimeError::prettyPrint (std::string_view what,
4848 source_location const &sourceLocation) {
49- return toRedString (what. data () ) + " in " + sourceLocation.file_name () + " :" +
49+ return toRedString (what) + " in " + sourceLocation.file_name () + " :" +
5050 std::to_string (sourceLocation.line ()) + " , " +
5151 toYellowString (sourceLocation.function_name ()) + " \n " ;
5252}
@@ -66,7 +66,7 @@ abcg::SDLError::SDLError(std::string_view what,
6666
6767std::string abcg::SDLError::prettyPrint (std::string_view what,
6868 source_location const &sourceLocation) {
69- return toRedString (what. data () ) + " (" + SDL_GetError () + " ) in " +
69+ return toRedString (what) + " (" + SDL_GetError () + " ) in " +
7070 sourceLocation.file_name () + " :" +
7171 std::to_string (sourceLocation.line ()) + " , " +
7272 toYellowString (sourceLocation.function_name ()) + " \n " ;
@@ -88,7 +88,7 @@ abcg::SDLImageError::SDLImageError(std::string_view what,
8888std::string
8989abcg::SDLImageError::prettyPrint (std::string_view what,
9090 source_location const &sourceLocation) {
91- return toRedString (what. data () ) + " (" + IMG_GetError () + " ) in " +
91+ return toRedString (what) + " (" + IMG_GetError () + " ) in " +
9292 sourceLocation.file_name () + " :" +
9393 std::to_string (sourceLocation.line ()) + " , " +
9494 toYellowString (sourceLocation.function_name ()) + " \n " ;
@@ -98,20 +98,20 @@ abcg::RuntimeError::RuntimeError(std::string_view what)
9898 : Exception(prettyPrint(what)) {}
9999
100100std::string abcg::RuntimeError::prettyPrint (std::string_view what) {
101- return toRedString (what. data () ) + " \n " ;
101+ return toRedString (what) + " \n " ;
102102}
103103
104104abcg::SDLError::SDLError (std::string_view what)
105105 : Exception(prettyPrint(what)) {}
106106
107107std::string abcg::SDLError::prettyPrint (std::string_view what) {
108- return toRedString (what. data () ) + " (" + SDL_GetError () + " )\n " ;
108+ return toRedString (what) + " (" + SDL_GetError () + " )\n " ;
109109}
110110
111111abcg::SDLImageError::SDLImageError (std::string_view what)
112112 : Exception(prettyPrint(what)) {}
113113
114114std::string abcg::SDLImageError::prettyPrint (std::string_view what) {
115- return toRedString (what. data () ) + " (" + IMG_GetError () + " )\n " ;
115+ return toRedString (what) + " (" + IMG_GetError () + " )\n " ;
116116}
117117#endif
0 commit comments