From 2beeeea4ea3a5799921674310712aa3ead9acd7a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 8 Sep 2015 18:26:13 +0200 Subject: Get rid of OSL_UNUSED In many cases it was originally used to silence warnings about variables used only in OSL_ENSURE etc., but that's no longer necessary since OSL_ENSURE is based on SAL_WARN etc. In some other cases it was apparently used as a speculative debugging aid, to have a value assigned to a variable to be easily able to view the value in a debugger. And in some cases it was used with (otherwise ignored) return values of (typically SQL-related) function calls, but it is probably better to eventually find and fix all the problematic ones among such calls via function declarations annotated SAL_WARN_UNUSED_RESULT. Change-Id: Ib925b38da70073b546fdcd00fa8524dc302accbf --- toolkit/source/controls/grid/sortablegriddatamodel.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx b/toolkit/source/controls/grid/sortablegriddatamodel.cxx index 35450bb020f7..1edc113d64f6 100644 --- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx +++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx @@ -490,10 +490,8 @@ private: } - void SAL_CALL SortableGridDataModel::disposing( const EventObject& i_event ) throw (RuntimeException, std::exception) + void SAL_CALL SortableGridDataModel::disposing( const EventObject& ) throw (RuntimeException, std::exception) { - // not interested in - OSL_UNUSED( i_event ); } -- cgit