summaryrefslogtreecommitdiff
path: root/sal/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-02-20 19:42:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-02-21 07:35:03 +0100
commit33b4e73f7893e38a150ed67ab57d0167c9845944 (patch)
tree2723ea3b20e503fced4ec7c27fe5413c95d8e52e /sal/qa
parent6af2e7b219bd3e4cf0496cb9fd3442ba2291de09 (diff)
loplugin:subtlezeroinit: sal
Change-Id: I70e79b6fd36c3ccff9e6906f46cecaa0f19c5a7f
Diffstat (limited to 'sal/qa')
-rw-r--r--sal/qa/osl/process/osl_Thread.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx
index ebff1e37fec4..31e369cf0a28 100644
--- a/sal/qa/osl/process/osl_Thread.cxx
+++ b/sal/qa/osl/process/osl_Thread.cxx
@@ -452,7 +452,7 @@ namespace osl_Thread
*/
void create_001()
{
- myThread* newthread = new myThread();
+ myThread* newthread = new myThread;
bool bRes = newthread->create();
CPPUNIT_ASSERT_MESSAGE("Can not creates a new thread!\n", bRes);
@@ -479,7 +479,7 @@ namespace osl_Thread
*/
void create_002()
{
- myThread* newthread = new myThread();
+ myThread* newthread = new myThread;
bool res1 = newthread->create();
bool res2 = newthread->create();
t_print("In non pro, an assertion should occurred. This behaviour is right.\n");
@@ -510,7 +510,7 @@ namespace osl_Thread
*/
void createSuspended_001()
{
- myThread* newthread = new myThread();
+ myThread* newthread = new myThread;
bool bRes = newthread->createSuspended();
CPPUNIT_ASSERT_MESSAGE("Can not creates a new thread!", bRes);
@@ -532,7 +532,7 @@ namespace osl_Thread
void createSuspended_002()
{
- myThread* newthread = new myThread();
+ myThread* newthread = new myThread;
bool res1 = newthread->createSuspended();
bool res2 = newthread->createSuspended();
@@ -667,7 +667,7 @@ namespace osl_Thread
*/
void resume_002()
{
- myThread* newthread = new myThread();
+ myThread* newthread = new myThread;
bool bRes = newthread->createSuspended();
CPPUNIT_ASSERT_MESSAGE ( "Can't create thread!", bRes );