commit | c4305600835b91630f9ca4b10ad9070ea55a726c | [log] [tgz] |
---|---|---|
author | Vitaly Buka <vitalybuka@google.com> | Tue Nov 24 23:33:09 2015 -0800 |
committer | Vitaly Buka <vitalybuka@google.com> | Wed Nov 25 17:43:16 2015 +0000 |
tree | dc9246f9de2910540f98fa441f4496a7f103beb1 | |
parent | 8a05bebb95f5f3f9bf6b72bd9e58b6ba6b8c9bdd [diff] |
Replace Get* methods returning unique_ptr with reference alternative Existing code created temporarily objects and returned them to the client. It was not efficient and error-prone as client code could retrieve pointers to internal objects without keeping unique_ptr alive. Change-Id: I9e17c8d9f66dfc9f52ce9ffc9a31992b16b00461 Reviewed-on: https://weave-review.googlesource.com/1672 Reviewed-by: Alex Vakulenko <avakulenko@google.com>