summaryrefslogtreecommitdiffstats
path: root/libs/hwui/tests
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-12-22 17:16:56 -0800
committerChris Craik <ccraik@google.com>2014-12-23 16:53:56 -0800
commit51d6a3db97bdd5315f1a17a4b447d10a92217b98 (patch)
tree80803f8d2a5507e2d29bd58c7243a23fca343454 /libs/hwui/tests
parente84a208317e0ed388fcdad1e6743c7849acb51b0 (diff)
downloadframeworks_base-51d6a3db97bdd5315f1a17a4b447d10a92217b98.zip
frameworks_base-51d6a3db97bdd5315f1a17a4b447d10a92217b98.tar.gz
frameworks_base-51d6a3db97bdd5315f1a17a4b447d10a92217b98.tar.bz2
Cleanup various clang warnings, use unique_ptrs in several places
Change-Id: I347904b25e51fcc7de14b1e72f1acd0f6ba26f3f
Diffstat (limited to 'libs/hwui/tests')
-rw-r--r--libs/hwui/tests/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/hwui/tests/main.cpp b/libs/hwui/tests/main.cpp
index 64ee5f6..ee16991 100644
--- a/libs/hwui/tests/main.cpp
+++ b/libs/hwui/tests/main.cpp
@@ -83,7 +83,7 @@ int main(int argc, char* argv[]) {
rootNode->setPropertyFieldsDirty(RenderNode::GENERIC);
ContextFactory factory;
- RenderProxy* proxy = new RenderProxy(false, rootNode, &factory);
+ std::unique_ptr<RenderProxy> proxy(new RenderProxy(false, rootNode, &factory));
proxy->loadSystemProperties();
proxy->initialize(surface);
float lightX = width / 2.0;
@@ -123,7 +123,6 @@ int main(int argc, char* argv[]) {
sleep(5);
- delete proxy;
rootNode->decStrong(0);
printf("Success!\n");