aboutsummaryrefslogtreecommitdiff
path: root/libbutl/char-scanner.mxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbutl/char-scanner.mxx')
-rw-r--r--libbutl/char-scanner.mxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/libbutl/char-scanner.mxx b/libbutl/char-scanner.mxx
index 9bfdeec..3947a05 100644
--- a/libbutl/char-scanner.mxx
+++ b/libbutl/char-scanner.mxx
@@ -118,10 +118,18 @@ LIBBUTL_MODEXPORT namespace butl
//
public:
void
- save_start (std::string&);
+ save_start (std::string& b)
+ {
+ assert (save_ == nullptr);
+ save_ = &b;
+ }
void
- save_stop ();
+ save_stop ()
+ {
+ assert (save_ != nullptr);
+ save_ = nullptr;
+ }
struct save_guard
{