diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:17:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-31 13:17:42 +0200 |
commit | 62e798c4a520a8b96e9113e363b1f26767231636 (patch) | |
tree | 7e0003b646bd68af83443890244dec1371499de7 /vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | |
parent | 9676efca531290ebde3839c5246abdde159499cf (diff) |
Reduce to static_cast any reinterpret_cast from void pointers
Change-Id: I65d76524847b57dcb17ee3f66e156ec1fd51b239
Diffstat (limited to 'vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx')
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx index 4392f5d3924d..796db52baf0e 100644 --- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx +++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx @@ -744,7 +744,7 @@ uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles() throw( uno // Convert to OOo for( GSList *pElem = pPathList; pElem; pElem = pElem->next) { - gchar *pURI = reinterpret_cast<gchar*>(pElem->data); + gchar *pURI = static_cast<gchar*>(pElem->data); aSelectedFiles[ nIndex ] = uritounicode(pURI); if( GTK_FILE_CHOOSER_ACTION_SAVE == eAction ) @@ -1743,7 +1743,7 @@ void SalGtkFilePicker::SetCurFilter( const OUString& rFilter ) for( GSList *iter = filters; !bFound && iter; iter = iter->next ) { - GtkFileFilter* pFilter = reinterpret_cast<GtkFileFilter *>( iter->data ); + GtkFileFilter* pFilter = static_cast<GtkFileFilter *>( iter->data ); G_CONST_RETURN gchar * filtername = gtk_file_filter_get_name( pFilter ); OUString sFilterName( filtername, strlen( filtername ), RTL_TEXTENCODING_UTF8 ); |