aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-25 12:06:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-25 12:06:28 +0200
commit7e3c4d85d4e2f46a4b7f118bd08ee5c2c49a6e50 (patch)
tree2e4a6b80bac4b9a67855129feb737c0fa243cbfa
parenteb04e019af8571714d1a8fb2aee900ee0a47767b (diff)
Add missing variable assignments
-rw-r--r--build2/variable.ixx8
1 files changed, 4 insertions, 4 deletions
diff --git a/build2/variable.ixx b/build2/variable.ixx
index 76a52c1..e01e3d6 100644
--- a/build2/variable.ixx
+++ b/build2/variable.ixx
@@ -304,7 +304,7 @@ namespace build2
string* p;
if (v.null ())
- new (&v.data_) string (move (x));
+ p = new (&v.data_) string (move (x));
else
{
p = &v.as<string> ();
@@ -365,7 +365,7 @@ namespace build2
path* p;
if (v.null ())
- new (&v.data_) path (move (x));
+ p = new (&v.data_) path (move (x));
else
{
p = &v.as<path> ();
@@ -426,7 +426,7 @@ namespace build2
dir_path* p;
if (v.null ())
- new (&v.data_) dir_path (move (x));
+ p = new (&v.data_) dir_path (move (x));
else
{
p = &v.as<dir_path> ();
@@ -554,7 +554,7 @@ namespace build2
vector<T>* p;
if (v.null ())
- new (&v.data_) vector<T> (move (x));
+ p = new (&v.data_) vector<T> (move (x));
else
{
p = &v.as<vector<T>> ();