diff options
author | Vincent Richard <[email protected]> | 2005-07-12 22:28:02 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-07-12 22:28:02 +0000 |
commit | 681297e10b666e13cc463f6fbb16236f36c3266c (patch) | |
tree | 5d2392e2283232ed3475cd9c69e22897b03e8a97 /tests/parser/textTest.cpp | |
parent | Added contentHandler::extractRaw(). (diff) | |
download | vmime-681297e10b666e13cc463f6fbb16236f36c3266c.tar.gz vmime-681297e10b666e13cc463f6fbb16236f36c3266c.zip |
Reference counting and smart pointers.
Diffstat (limited to 'tests/parser/textTest.cpp')
-rw-r--r-- | tests/parser/textTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/parser/textTest.cpp b/tests/parser/textTest.cpp index e43080df..54e6c5ea 100644 --- a/tests/parser/textTest.cpp +++ b/tests/parser/textTest.cpp @@ -61,7 +61,7 @@ namespace assert_eq("4.3", w1.getCharset(), t4.getWordAt(0)->getCharset()); vmime::word w2("Other", vmime::charset(vmime::charsets::US_ASCII)); - t4.appendWord(new vmime::word(w2)); + t4.appendWord(vmime::create <vmime::word>(w2)); vmime::text t5(t4); @@ -77,7 +77,7 @@ namespace vmime::text t1("Test: \xa9\xc3"); assert_true("operator==", t1 == t1); - assert_true("clone", *(t1.clone()) == t1); + assert_true("clone", *vmime::clone(t1) == t1); vmime::text t2; t2.copyFrom(t1); @@ -91,7 +91,7 @@ namespace vmime::charset c1("test"); vmime::text t1; - vmime::text::newFromString(s1, c1, &t1); + t1.createFromString(s1, c1); assert_eq("1.1", 1, t1.getWordCount()); assert_eq("1.2", s1, t1.getWordAt(0)->getBuffer()); @@ -104,7 +104,7 @@ namespace vmime::charset c2("test"); vmime::text t2; - vmime::text::newFromString(s2, c2, &t2); + t2.createFromString(s2, c2); assert_eq("2.1", 3, t2.getWordCount()); assert_eq("2.2", s2_1, t2.getWordAt(0)->getBuffer()); |