| 42 | } |
| 43 | |
| 44 | std::optional<QString>* QDCSS::get(QString key) |
| 45 | { |
| 46 | auto found = m_data.find(key); |
| 47 | |
| 48 | if (found == m_data.end() || found->empty()) { |
| 49 | return new std::optional<QString>; |
| 50 | } |
| 51 | |
| 52 | return new std::optional<QString>(found->back()); |
| 53 | } |
no test coverage detected