Another memory simplification.

This commit is contained in:
2025-04-07 22:37:33 -04:00
parent 40e2306664
commit 885a5ba629
2 changed files with 16 additions and 27 deletions

View File

@ -7,6 +7,9 @@
#include <ctype.h>
#include <optional>
#include <string>
namespace dw {
namespace core {
@ -34,7 +37,7 @@ private:
* If dw::core::Findtext::search is called with the same key, the search
* is continued, otherwise it is restarted.
*/
char *key;
std::optional< std::string > key;
/** \brief Whether the last search was case sensitive. */
bool caseSens;