File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
#include < cstdint>
4
4
#include < functional>
5
+ #include < string_view>
5
6
6
7
namespace fly {
7
8
@@ -12,8 +13,8 @@ class TaskRunner;
12
13
*/
13
14
struct TaskLocation
14
15
{
15
- const char * m_file { nullptr } ;
16
- const char * m_function { nullptr } ;
16
+ std::string_view m_file;
17
+ std::string_view m_function;
17
18
std::uint32_t m_line {0 };
18
19
};
19
20
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ namespace fly::test {
7
7
// ==================================================================================================
8
8
void WaitableTaskRunner::task_complete (fly::TaskLocation &&location)
9
9
{
10
- m_completed_tasks.push (location.m_file );
10
+ m_completed_tasks.push (std::string ( location.m_file . data (), location. m_file . size ()) );
11
11
}
12
12
13
13
// ==================================================================================================
You can’t perform that action at this time.
0 commit comments