Kaydet (Commit) 97ec73f2 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS sal05 (1.2.12); FILE MERGED

2004/01/05 10:34:58 tra 1.2.12.2: merge conflicts resolved
2003/12/18 10:57:10 tra 1.2.12.1: #i22046#use new osl function Module::getFunctionSymbol and the now correct reinterpret_cast to avoid warnings when compiling with wall
üst 700621fd
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: systemshell.cxx,v $ * $RCSfile: systemshell.cxx,v $
* *
* $Revision: 1.3 $ * $Revision: 1.4 $
* *
* last change: $Author: rt $ $Date: 2003-12-01 16:19:33 $ * last change: $Author: hr $ $Date: 2004-02-03 13:10:08 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -76,9 +76,7 @@ namespace SystemShell { ...@@ -76,9 +76,7 @@ namespace SystemShell {
rtl::OUString get_absolute_library_url(const rtl::OUString& lib_name) rtl::OUString get_absolute_library_url(const rtl::OUString& lib_name)
{ {
rtl::OUString url; rtl::OUString url;
// Convert from reinterpret_cast<void*> if (osl::Module::getUrlFromAddress(reinterpret_cast<oslGenericFunction>(AddToRecentDocumentList), url))
// not allowed in gcc3.3 without permissive
if (osl::Module::getUrlFromAddress((void*)(AddToRecentDocumentList), url))
{ {
sal_Int32 index = url.lastIndexOf('/'); sal_Int32 index = url.lastIndexOf('/');
url = url.copy(0, index + 1); url = url.copy(0, index + 1);
...@@ -101,7 +99,7 @@ namespace SystemShell { ...@@ -101,7 +99,7 @@ namespace SystemShell {
// convert from reinterpret_cast<PFUNC_ADD_TO_RECENTLY_USED_LIST> // convert from reinterpret_cast<PFUNC_ADD_TO_RECENTLY_USED_LIST>
// not allowed in gcc 3.3 without permissive. // not allowed in gcc 3.3 without permissive.
PFUNC_ADD_TO_RECENTLY_USED_LIST add_to_recently_used_file_list = PFUNC_ADD_TO_RECENTLY_USED_LIST add_to_recently_used_file_list =
(PFUNC_ADD_TO_RECENTLY_USED_LIST)(module.getSymbol(SYM_ADD_TO_RECENTLY_USED_FILE_LIST)); reinterpret_cast<PFUNC_ADD_TO_RECENTLY_USED_LIST>(module.getFunctionSymbol(SYM_ADD_TO_RECENTLY_USED_FILE_LIST));
if (add_to_recently_used_file_list) if (add_to_recently_used_file_list)
add_to_recently_used_file_list(aFileUrl, aMimeType); add_to_recently_used_file_list(aFileUrl, aMimeType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment