diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-30 12:16:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 08:25:07 +0200 |
commit | c9253818ec8252169c20450b41878be459568d95 (patch) | |
tree | 1f271151725042f33c3c8aa3988343bcd7f89e12 /desktop/qa | |
parent | 242a796a71e29a1d8cdc4dd71d2465b898db32ab (diff) |
loplugin:oncevar
extend oncevar to any POD type
Change-Id: Ia98ee0a67f183e40fb0c38477760124b2c411dc0
Reviewed-on: https://gerrit.libreoffice.org/40564
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/qa')
-rw-r--r-- | desktop/qa/desktop_lib/test_desktop_lib.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx index 58aea8beb431..a269f9c639e4 100644 --- a/desktop/qa/desktop_lib/test_desktop_lib.cxx +++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx @@ -782,7 +782,7 @@ void DesktopLOKTest::testWriterComments() // Insert a comment at the beginning of the document and wait till the main // loop grabs the focus, so characters end up in the annotation window. - TimeValue aTimeValue = {2 , 0}; // 2 seconds max + TimeValue const aTimeValue = {2 , 0}; // 2 seconds max m_aCommandResultCondition.reset(); pDocument->pClass->postUnoCommand(pDocument, ".uno:InsertAnnotation", nullptr, true); Scheduler::ProcessEventsToIdle(); @@ -1064,7 +1064,7 @@ void DesktopLOKTest::testContextMenuCalc() 1, 4, 0); Scheduler::ProcessEventsToIdle(); - TimeValue aTimeValue = {2 , 0}; // 2 seconds max + TimeValue const aTimeValue = {2 , 0}; // 2 seconds max m_aContextMenuCondition.wait(aTimeValue); CPPUNIT_ASSERT( !m_aContextMenuResult.empty() ); @@ -1174,7 +1174,7 @@ void DesktopLOKTest::testContextMenuWriter() 1, 4, 0); Scheduler::ProcessEventsToIdle(); - TimeValue aTimeValue = {2 , 0}; // 2 seconds max + TimeValue const aTimeValue = {2 , 0}; // 2 seconds max m_aContextMenuCondition.wait(aTimeValue); CPPUNIT_ASSERT( !m_aContextMenuResult.empty() ); @@ -1230,7 +1230,7 @@ void DesktopLOKTest::testContextMenuImpress() 1, 4, 0); Scheduler::ProcessEventsToIdle(); - TimeValue aTimeValue = {2 , 0}; // 2 seconds max + TimeValue const aTimeValue = {2 , 0}; // 2 seconds max m_aContextMenuCondition.wait(aTimeValue); CPPUNIT_ASSERT( !m_aContextMenuResult.empty() ); |