summaryrefslogtreecommitdiff
path: root/tests/test_cpp.cc
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2012-03-31 12:17:32 -0700
committerJoshua Haberman <jhaberman@gmail.com>2012-03-31 12:17:32 -0700
commitcca4818eb7769d6e776bdc30516a5f871f1d6393 (patch)
treee67dd65d5c016028ae976b09b2d69f6b7525aa5f /tests/test_cpp.cc
parent26ed1e996171c8ffa2ced42ac69b1b82c1956e1f (diff)
Sync from internal Google development.
Diffstat (limited to 'tests/test_cpp.cc')
-rw-r--r--tests/test_cpp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc
index 4d70e85..fb0916d 100644
--- a/tests/test_cpp.cc
+++ b/tests/test_cpp.cc
@@ -18,7 +18,7 @@
#include "upb_test.h"
static void TestSymbolTable(const char *descriptor_file) {
- upb::SymbolTable *s = upb::SymbolTable::New();
+ upb::SymbolTable *s = upb::SymbolTable::New(&s);
upb::Status status;
if (!upb::LoadDescriptorFileIntoSymtab(s, descriptor_file, &status)) {
std::cerr << "Couldn't load descriptor: " << status;
@@ -27,7 +27,7 @@ static void TestSymbolTable(const char *descriptor_file) {
const upb::MessageDef *md = s->LookupMessage("A", &md);
ASSERT(md);
- s->Unref();
+ s->Unref(&s);
md->Unref(&md);
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback