///////////////////////////////////////////////////////
| 97 | |
| 98 | //////////////////////////////////////////////////////////// |
| 99 | std::optional<Cursor> Cursor::createFromSystem(Type type) |
| 100 | { |
| 101 | Cursor cursor; |
| 102 | if (!cursor.m_impl->loadFromSystem(type)) |
| 103 | { |
| 104 | // Error message generated in called function. |
| 105 | return std::nullopt; |
| 106 | } |
| 107 | |
| 108 | return cursor; |
| 109 | } |
| 110 | |
| 111 | |
| 112 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected