On Sep 24, 2012, at 8:28 PM, Pavel Janík wrote:

> Hi,
> 
> the following change made about.cxx uncompilable on my system:
> 
> Compiling: cui/source/dialogs/about.cxx
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs/about.cxx: In 
> member function ‘long int 
> AboutDialog::OpenLinkHdl_Impl(svt::FixedHyperlink*)’:
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs/about.cxx:537: 
> error: ‘system’ has not been declared
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs/about.cxx:537: 
> error: ‘XSystemShellExecute’ was not declared in this scope
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs/about.cxx:537: 
> error: template argument 1 is invalid
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs/about.cxx:537: 
> error: invalid type in declaration before ‘(’ token
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs/about.cxx:541: 
> error: initializer expression list treated as compound expression
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs/about.cxx:542: 
> error: request for member ‘is’ in ‘xSystemShell’, which is of non-class type 
> ‘int’
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs/about.cxx:543: 
> error: base operand of ‘->’ is not a pointer
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs/about.cxx:543: 
> error: ‘system’ has not been declared
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs/about.cxx:543: 
> error: ‘DEFAULTS’ was not declared in this scope
> dmake:  Error code 1, while making '../../unxmacxi.pro/slo/about.obj'
> ERROR: error 65280 occurred while making 
> /Users/pavel/BUILD/BuildDir/ooo_trunk_src/cui/source/dialogs

The following made it compile again:

Index: about.cxx
===================================================================
--- about.cxx   (revision 1389508)
+++ about.cxx   (working copy)
@@ -534,13 +534,13 @@
         {
             uno::Reference< uno::XComponentContext > xContext =
                 ::comphelper::getProcessComponentContext();
-            uno::Reference< system::XSystemShellExecute > xSystemShell(
+            uno::Reference< com::sun::star::system::XSystemShellExecute > 
xSystemShell(
                 xContext->getServiceManager()->createInstanceWithContext(
                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( 
"com.sun.star.system.SystemShellExecute" ) ),
                     xContext ),
                 uno::UNO_QUERY_THROW );
             if ( xSystemShell.is() )
-                xSystemShell->execute( sURL, rtl::OUString(), 
system::SystemShellExecuteFlags::DEFAULTS );
+             xSystemShell->execute( sURL, rtl::OUString(), 
com::sun::star::system::SystemShellExecuteFlags::DEFAULTS );
         }
         catch( const uno::Exception& e )
         {

-- 
Pavel Janík



Reply via email to