summaryrefslogtreecommitdiff
path: root/shell/source/unix/exec
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-09-12 23:08:14 +0300
committerTor Lillqvist <tml@collabora.com>2016-09-12 23:29:32 +0300
commit01755200f6c01afc5c5970141501aea084e8b770 (patch)
tree188839c69a1b40be80c1e4e841a270f4ffdcc24f /shell/source/unix/exec
parent5177666536f65915c3ca07090a4b561b57ae6f63 (diff)
Bin some noise comments and superfluous vertical whitespace
Change-Id: I3c19457bb29cd1392f14598fc8798aed4b1a1a7f
Diffstat (limited to 'shell/source/unix/exec')
-rw-r--r--shell/source/unix/exec/shellexec.cxx12
-rw-r--r--shell/source/unix/exec/shellexecentry.cxx8
2 files changed, 2 insertions, 18 deletions
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 7f12a80b76ef..71f01e764a56 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -42,20 +42,15 @@
#include <errno.h>
#include <unistd.h>
-
-// namespace directives
-
-
using com::sun::star::system::XSystemShellExecute;
using com::sun::star::system::SystemShellExecuteException;
-
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::system::SystemShellExecuteFlags;
using namespace cppu;
-namespace // private
+namespace
{
Sequence< OUString > SAL_CALL ShellExec_getSupportedServiceNames()
{
@@ -78,7 +73,6 @@ void escapeForShell( OStringBuffer & rBuffer, const OString & rURL)
}
}
-
ShellExec::ShellExec( const Reference< XComponentContext >& xContext ) :
WeakImplHelper< XSystemShellExecute, XServiceInfo >(),
m_xContext(xContext)
@@ -100,7 +94,6 @@ ShellExec::ShellExec( const Reference< XComponentContext >& xContext ) :
}
}
-
void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aParameter, sal_Int32 nFlags )
throw (IllegalArgumentException, SystemShellExecuteException, RuntimeException, std::exception)
{
@@ -217,20 +210,19 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
}
// XServiceInfo
+
OUString SAL_CALL ShellExec::getImplementationName( )
throw( RuntimeException, std::exception )
{
return OUString("com.sun.star.comp.system.SystemShellExecute");
}
-// XServiceInfo
sal_Bool SAL_CALL ShellExec::supportsService( const OUString& ServiceName )
throw( RuntimeException, std::exception )
{
return cppu::supportsService(this, ServiceName);
}
-// XServiceInfo
Sequence< OUString > SAL_CALL ShellExec::getSupportedServiceNames( )
throw( RuntimeException, std::exception )
{
diff --git a/shell/source/unix/exec/shellexecentry.cxx b/shell/source/unix/exec/shellexecentry.cxx
index 5c1fc4f49c36..2478f8c17808 100644
--- a/shell/source/unix/exec/shellexecentry.cxx
+++ b/shell/source/unix/exec/shellexecentry.cxx
@@ -21,10 +21,6 @@
#include <osl/diagnose.h>
#include "shellexec.hxx"
-
-// namespace directives
-
-
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::registry;
@@ -34,7 +30,6 @@ using com::sun::star::system::XSystemShellExecute;
#define SHELLEXEC_SERVICE_NAME "com.sun.star.system.SystemShellExecute"
#define SHELLEXEC_IMPL_NAME "com.sun.star.comp.system.SystemShellExecute"
-
namespace
{
Reference< XInterface > SAL_CALL createInstance(const Reference< XComponentContext >& xContext)
@@ -46,9 +41,6 @@ namespace
extern "C"
{
-// component_getFactory
-
-
SAL_DLLPUBLIC_EXPORT void* SAL_CALL syssh_component_getFactory(
const sal_Char* pImplName,
SAL_UNUSED_PARAMETER void* /*pSrvManager*/,