diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-12-27 07:36:52 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-12-27 07:37:36 -0600 |
commit | daadc82a1d511998228e198802f0a06420f6bcee (patch) | |
tree | d7f3da302dfe256d419815bb53e59a05722406b4 /fpicker | |
parent | af366b733201bc3ed982e807c3ca4bc300b3700d (diff) |
WaE unused variables
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/aqua/AquaFilePickerDelegate.mm | 4 | ||||
-rw-r--r-- | fpicker/source/aqua/CFStringUtilities.hxx | 58 |
2 files changed, 43 insertions, 19 deletions
diff --git a/fpicker/source/aqua/AquaFilePickerDelegate.mm b/fpicker/source/aqua/AquaFilePickerDelegate.mm index 2fef707fa5fb..8482f6995730 100644 --- a/fpicker/source/aqua/AquaFilePickerDelegate.mm +++ b/fpicker/source/aqua/AquaFilePickerDelegate.mm @@ -59,6 +59,7 @@ - (BOOL)panel:(id)sender shouldShowFilename:(NSString *)filename { + (void)sender; if( filterHelper == NULL ) return true; if( filename == nil ) @@ -68,6 +69,7 @@ - (void)panelSelectionDidChange:(id)sender { + (void)sender; if (filePicker != NULL) { ::com::sun::star::ui::dialogs::FilePickerEvent evt; filePicker->fileSelectionChanged(evt); @@ -76,6 +78,8 @@ - (void)panel:(id)sender directoryDidChange:(NSString *)path { + (void)sender; + (void)path; if (filePicker != NULL) { ::com::sun::star::ui::dialogs::FilePickerEvent evt; filePicker->directoryChanged(evt); diff --git a/fpicker/source/aqua/CFStringUtilities.hxx b/fpicker/source/aqua/CFStringUtilities.hxx index 6974899a4025..7dc53a4b8502 100644 --- a/fpicker/source/aqua/CFStringUtilities.hxx +++ b/fpicker/source/aqua/CFStringUtilities.hxx @@ -67,23 +67,32 @@ inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, con OSL_TRACE(">>> %s::%s%s%s = %s", classname, methodname, PARAMFILLER, param1, OUStringToOString(value1, RTL_TEXTENCODING_UTF8).getStr()); } -inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const CFStringRef value1) { - OSL_TRACE(">>> %s::%s%s%s =", classname, methodname, PARAMFILLER, param1); #if OSL_DEBUG_LEVEL > 1 +inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const CFStringRef value1) +{ + OSL_TRACE(">>> %s::%s%s%s =", classname, methodname, PARAMFILLER, param1); CFShow(value1); + +} #else - (void)value1; -#endif +inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const CFStringRef /* value1 */) +{ + OSL_TRACE(">>> %s::%s%s%s =", classname, methodname, PARAMFILLER, param1); } +#endif -inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const NSString* value1) { - OSL_TRACE(">>> %s::%s%s%s =", classname, methodname, PARAMFILLER, param1); #if OSL_DEBUG_LEVEL > 1 +inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const NSString* value1) +{ + OSL_TRACE(">>> %s::%s%s%s =", classname, methodname, PARAMFILLER, param1); NSLog(value1); +} #else - (void)value1; -#endif +inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const NSString* /* value1 */) +{ + OSL_TRACE(">>> %s::%s%s%s =", classname, methodname, PARAMFILLER, param1); } +#endif inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const int value1) { OSL_TRACE(">>> %s::%s%s%s = %d", classname, methodname, PARAMFILLER, param1, value1); @@ -105,20 +114,23 @@ inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, con OSL_TRACE(">>> %s::%s%s%s = %d%s%s = %s", classname, methodname, PARAMFILLER, param1, value1, PARAMFILLER, param2, value2); } -inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const int value1, const char* param2, const CFStringRef value2) { +inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const int value1, const char* param2, const CFStringRef value2) +{ OSL_TRACE(">>> %s::%s%s%s = %d%s%s =", classname, methodname, PARAMFILLER, param1, value1, PARAMFILLER, param2, value2); #if OSL_DEBUG_LEVEL > 1 CFShow(value2); #endif } -inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const int value1, const char* param2, const NSString* value2) { +inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const int value1, const char* param2, const NSString* value2) +{ OSL_TRACE(">>> %s::%s%s%s = %d%s%s =", classname, methodname, PARAMFILLER, param1, value1, PARAMFILLER, param2, value2); #if OSL_DEBUG_LEVEL > 1 NSLog(value2); -#endif +#endif} } + inline void DBG_PRINT_ENTRY(const char * classname, const char * methodname, const char* param1, const rtl::OUString& value1, const char* param2, const rtl::OUString& value2) { OSL_TRACE(">>> %s::%s%s%s = %s%s%s = %s", classname, methodname, PARAMFILLER, param1, OUStringToOString(value1, RTL_TEXTENCODING_UTF8).getStr(), PARAMFILLER, param2, OUStringToOString(value2, RTL_TEXTENCODING_UTF8).getStr()); } @@ -145,23 +157,31 @@ inline void DBG_PRINT_EXIT(const char * classname, const char * methodname, int OSL_TRACE("<<< %s::%s%sreturnValue = %d", classname, methodname, PARAMFILLER, retVal); } -inline void DBG_PRINT_EXIT(const char * classname, const char * methodname, const CFStringRef retVal) { - OSL_TRACE("<<< %s::%s%sreturnValue = ", classname, methodname, PARAMFILLER); #if OSL_DEBUG_LEVEL > 1 +inline void DBG_PRINT_EXIT(const char * classname, const char * methodname, const CFStringRef retVal) +{ + OSL_TRACE("<<< %s::%s%sreturnValue = ", classname, methodname, PARAMFILLER); CFShow(retVal); +} #else - (void)retVal; -#endif +inline void DBG_PRINT_EXIT(const char * classname, const char * methodname, const CFStringRef /* retVal */) +{ + OSL_TRACE("<<< %s::%s%sreturnValue = ", classname, methodname, PARAMFILLER); } +#endif -inline void DBG_PRINT_EXIT(const char * classname, const char * methodname, const NSString* retVal) { - OSL_TRACE("<<< %s::%s%sreturnValue = ", classname, methodname, PARAMFILLER); #if OSL_DEBUG_LEVEL > 1 +inline void DBG_PRINT_EXIT(const char * classname, const char * methodname, const NSString* retVal) +{ + OSL_TRACE("<<< %s::%s%sreturnValue = ", classname, methodname, PARAMFILLER); NSLog(retVal); +} #else - (void)retVal; -#endif +inline void DBG_PRINT_EXIT(const char * classname, const char * methodname, const NSString* /* retVal */ ) +{ + OSL_TRACE("<<< %s::%s%sreturnValue = ", classname, methodname, PARAMFILLER); } +#endif inline void DBG_PRINT_EXIT(const char * classname, const char * methodname, const rtl::OUString& retVal) { OSL_TRACE("<<< %s::%s%sreturnValue = %s", classname, methodname, PARAMFILLER, OUStringToOString(retVal, RTL_TEXTENCODING_UTF8).getStr()); |