aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-04-20 10:55:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-04-20 10:55:50 +0200
commit9b138ccbebdcdc6bfdd6f6d52e534ae14df280af (patch)
tree04142d3c54864d2f18605b8a544d79e6ec40a9ae /libbuild2/target.ixx
parent1b8c19b427f7e0ec6a747df60eb9334a620843b7 (diff)
Replace match_extra::buffer with more general data storage facility
Diffstat (limited to 'libbuild2/target.ixx')
-rw-r--r--libbuild2/target.ixx5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbuild2/target.ixx b/libbuild2/target.ixx
index bdfa20f..5432f7c 100644
--- a/libbuild2/target.ixx
+++ b/libbuild2/target.ixx
@@ -138,15 +138,14 @@ namespace build2
inline void match_extra::
init (bool f)
{
+ clear_data ();
fallback = f;
- buffer.clear ();
}
inline void match_extra::
free ()
{
- string s;
- buffer.swap (s);
+ clear_data ();
}
// target