[AT-SPI] Catch exception by reference 05/244705/22
authorBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 23 Sep 2020 09:28:50 +0000 (11:28 +0200)
committerArtur Świgoń <a.swigon@samsung.com>
Fri, 23 Oct 2020 13:07:00 +0000 (15:07 +0200)
Change-Id: I92648d7bf6dceaa89c6cba3585383afbab5a5500

automated-tests/src/dali-toolkit-internal/utc-Dali-Accessibility-Controls-BridgeUp.cpp

index caddd7d..ace41ba 100644 (file)
@@ -498,14 +498,14 @@ int UtcDaliAccessibilityParentChildren(void)
     TestGetIndexInParent( child_1_accessible -> GetAddress() );
     DALI_ABORT("Object has parent, test abort");
   }
     TestGetIndexInParent( child_1_accessible -> GetAddress() );
     DALI_ABORT("Object has parent, test abort");
   }
-  catch(Accessibility::TestDBusWrapper::error){}
+  catch(Accessibility::TestDBusWrapper::error &){}
 
   try
   {
     TestGetChildAtIndex( parent_accessible -> GetAddress(), -1 );
     DALI_ABORT("Positive index, test abort");
   }
 
   try
   {
     TestGetChildAtIndex( parent_accessible -> GetAddress(), -1 );
     DALI_ABORT("Positive index, test abort");
   }
-  catch(Accessibility::TestDBusWrapper::error){}
+  catch(Accessibility::TestDBusWrapper::error &){}
 
   DALI_TEST_EQUALS( parent_accessible -> GetChildCount(), 0, TEST_LOCATION );
 
 
   DALI_TEST_EQUALS( parent_accessible -> GetChildCount(), 0, TEST_LOCATION );
 
@@ -514,7 +514,7 @@ int UtcDaliAccessibilityParentChildren(void)
     child_1_accessible -> GetIndexInParent();
     DALI_ABORT("Object has parent, test abort");
   }
     child_1_accessible -> GetIndexInParent();
     DALI_ABORT("Object has parent, test abort");
   }
-  catch (std::domain_error){}
+  catch (std::domain_error &){}
 
   parent.Add(child_1);
   parent.Add(child_2);
 
   parent.Add(child_1);
   parent.Add(child_2);
@@ -714,28 +714,28 @@ int UtcDaliAccessibilityAction(void)
     b ->GetActionDescription( count );
     DALI_ABORT( "Correct index, abort" );
   }
     b ->GetActionDescription( count );
     DALI_ABORT( "Correct index, abort" );
   }
-  catch( std::domain_error ){}
+  catch( std::domain_error &){}
 
   try
   {
     b ->GetActionName( count );
     DALI_ABORT( "Correct index, abort" );
   }
 
   try
   {
     b ->GetActionName( count );
     DALI_ABORT( "Correct index, abort" );
   }
-  catch( std::domain_error ){}
+  catch( std::domain_error &){}
 
   try
   {
     b ->GetLocalizedActionName( count );
     DALI_ABORT( "Correct index, abort" );
   }
 
   try
   {
     b ->GetLocalizedActionName( count );
     DALI_ABORT( "Correct index, abort" );
   }
-  catch( std::domain_error ){}
+  catch( std::domain_error &){}
 
   try
   {
     b ->GetActionKeyBinding( count );
     DALI_ABORT( "Correct index, abort" );
   }
 
   try
   {
     b ->GetActionKeyBinding( count );
     DALI_ABORT( "Correct index, abort" );
   }
-  catch( std::domain_error ){}
+  catch( std::domain_error &){}
 
   count = TestGetActionCount(b -> GetAddress());
 
 
   count = TestGetActionCount(b -> GetAddress());