diff options
| author | Nat Goodspeed <nat@lindenlab.com> | 2021-10-07 14:00:39 -0400 | 
|---|---|---|
| committer | Nat Goodspeed <nat@lindenlab.com> | 2021-10-07 14:00:39 -0400 | 
| commit | b554c9eaf45c83500e6b65e295cc507b9a3d537b (patch) | |
| tree | 55fe0694dc8ad4f960532a5c8badfd51769ecd8b | |
| parent | 2cb09dd4a828756dce6180505c63851aa9875187 (diff) | |
SL-16024: Adapt llinstancetracker_test.cpp to getInstance() change.
| -rw-r--r-- | indra/llcommon/tests/llinstancetracker_test.cpp | 14 | 
1 files changed, 7 insertions, 7 deletions
diff --git a/indra/llcommon/tests/llinstancetracker_test.cpp b/indra/llcommon/tests/llinstancetracker_test.cpp index 9b89159625..5daa29adf4 100644 --- a/indra/llcommon/tests/llinstancetracker_test.cpp +++ b/indra/llcommon/tests/llinstancetracker_test.cpp @@ -90,19 +90,19 @@ namespace tut          {              Keyed one("one");              ensure_equals(Keyed::instanceCount(), 1); -            Keyed* found = Keyed::getInstance("one"); -            ensure("couldn't find stack Keyed", found); -            ensure_equals("found wrong Keyed instance", found, &one); +            auto found = Keyed::getInstance("one"); +            ensure("couldn't find stack Keyed", bool(found)); +            ensure_equals("found wrong Keyed instance", found.get(), &one);              {                  boost::scoped_ptr<Keyed> two(new Keyed("two"));                  ensure_equals(Keyed::instanceCount(), 2); -                Keyed* found = Keyed::getInstance("two"); -                ensure("couldn't find heap Keyed", found); -                ensure_equals("found wrong Keyed instance", found, two.get()); +                auto found = Keyed::getInstance("two"); +                ensure("couldn't find heap Keyed", bool(found)); +                ensure_equals("found wrong Keyed instance", found.get(), two.get());              }              ensure_equals(Keyed::instanceCount(), 1);          } -        Keyed* found = Keyed::getInstance("one"); +        auto found = Keyed::getInstance("one");          ensure("Keyed key lives too long", ! found);          ensure_equals(Keyed::instanceCount(), 0);      }  | 
