summaryrefslogtreecommitdiff
path: root/cli_ure
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-22 21:20:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:38:49 +0000
commit0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch)
tree5024cba9f9ea5e3b23ea26025323f6aef39488d0 /cli_ure
parentb81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff)
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cli_ure')
-rw-r--r--cli_ure/source/climaker/climaker_app.cxx4
-rw-r--r--cli_ure/source/climaker/climaker_emit.cxx36
-rw-r--r--cli_ure/source/native/native_bootstrap.cxx4
-rw-r--r--cli_ure/source/uno_bridge/cli_bridge.cxx18
-rw-r--r--cli_ure/source/uno_bridge/cli_proxy.cxx14
5 files changed, 38 insertions, 38 deletions
diff --git a/cli_ure/source/climaker/climaker_app.cxx b/cli_ure/source/climaker/climaker_app.cxx
index cca91e5e9f2c..c8771d65d83d 100644
--- a/cli_ure/source/climaker/climaker_app.cxx
+++ b/cli_ure/source/climaker/climaker_app.cxx
@@ -52,7 +52,7 @@ using namespace ::com::sun::star::uno;
namespace climaker
{
-//------------------------------------------------------------------------------
+
static char const s_usingText [] =
"\n"
"using: climaker <switches> [registry-file-1 registry-file-2 ...]\n"
@@ -94,7 +94,7 @@ struct OptionInfo
bool g_verbose = false;
-//------------------------------------------------------------------------------
+
static const OptionInfo s_option_infos [] = {
{ RTL_CONSTASCII_STRINGPARAM("out"), 'O', true },
{ RTL_CONSTASCII_STRINGPARAM("types"), 'T', true },
diff --git a/cli_ure/source/climaker/climaker_emit.cxx b/cli_ure/source/climaker/climaker_emit.cxx
index 628547135df9..58f3c1172c76 100644
--- a/cli_ure/source/climaker/climaker_emit.cxx
+++ b/cli_ure/source/climaker/climaker_emit.cxx
@@ -38,7 +38,7 @@ using namespace ::com::sun::star::uno;
namespace climaker
{
System::String^ mapUnoPolymorphicName(System::String^ unoName);
-//------------------------------------------------------------------------------
+
static inline ::System::String ^ to_cts_name(
OUString const & uno_name )
{
@@ -48,7 +48,7 @@ static inline ::System::String ^ to_cts_name(
return ustring_to_String( buf.makeStringAndClear() );
}
-//------------------------------------------------------------------------------
+
static inline ::System::Object ^ to_cli_constant( Any const & value )
{
switch (value.getValueTypeClass())
@@ -95,7 +95,7 @@ static inline ::System::Object ^ to_cli_constant( Any const & value )
}
}
-//------------------------------------------------------------------------------
+
static inline void emit_ldarg( Emit::ILGenerator ^ code, ::System::Int32 index )
{
switch (index)
@@ -275,7 +275,7 @@ System::String^ mapUnoPolymorphicName(System::String^ unoName)
-//______________________________________________________________________________
+
Assembly ^ TypeEmitter::type_resolve(
::System::Object ^, ::System::ResolveEventArgs ^ args )
{
@@ -310,7 +310,7 @@ Assembly ^ TypeEmitter::type_resolve(
return nullptr;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
::System::String ^ cts_name, bool throw_exc )
{
@@ -358,7 +358,7 @@ Assembly ^ TypeEmitter::type_resolve(
}
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type_Exception()
{
if (nullptr == m_type_Exception)
@@ -419,7 +419,7 @@ Assembly ^ TypeEmitter::type_resolve(
return m_type_Exception;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type_RuntimeException()
{
if (nullptr == m_type_RuntimeException)
@@ -473,7 +473,7 @@ Assembly ^ TypeEmitter::type_resolve(
return m_type_RuntimeException;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XConstantTypeDescription > const & xType )
{
@@ -511,7 +511,7 @@ Assembly ^ TypeEmitter::type_resolve(
return ret_type;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XConstantsTypeDescription > const & xType )
{
@@ -562,7 +562,7 @@ Assembly ^ TypeEmitter::type_resolve(
return ret_type;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XEnumTypeDescription > const & xType )
{
@@ -621,7 +621,7 @@ Assembly ^ TypeEmitter::type_resolve(
return ret_type;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XCompoundTypeDescription > const & xType )
{
@@ -696,7 +696,7 @@ Assembly ^ TypeEmitter::type_resolve(
return ret_type;
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XInterfaceTypeDescription2 > const & xType )
{
@@ -767,7 +767,7 @@ Assembly ^ TypeEmitter::type_resolve(
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XServiceTypeDescription2 > const & xType )
{
@@ -828,7 +828,7 @@ Assembly ^ TypeEmitter::type_resolve(
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::complete_iface_type( iface_entry ^ entry )
{
Emit::TypeBuilder ^ type_builder = entry->m_type_builder;
@@ -1575,7 +1575,7 @@ Assembly ^ TypeEmitter::type_resolve(
if (attrBuilder != nullptr)
method_builder->SetCustomAttribute(attrBuilder);
- //-------------------------------------------------------------
+
//define parameter attributes (paramarray), names etc.
//The first parameter is the XComponentContext, which cannot be obtained
//from reflection.
@@ -2062,7 +2062,7 @@ Emit::CustomAttributeBuilder^ TypeEmitter::get_exception_attribute(
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_type(
Reference< reflection::XTypeDescription > const & xType )
{
@@ -2158,7 +2158,7 @@ Emit::CustomAttributeBuilder^ TypeEmitter::get_exception_attribute(
}
}
-//______________________________________________________________________________
+
::System::Type ^ TypeEmitter::get_complete_struct( ::System::String ^ sName)
{
struct_entry ^ pStruct = safe_cast< struct_entry ^>(
@@ -2213,7 +2213,7 @@ TypeEmitter::~TypeEmitter()
safe_cast< singleton_entry ^ >( enumerator->Value ) );
}
}
-//______________________________________________________________________________
+
TypeEmitter::TypeEmitter(
::System::Reflection::Emit::ModuleBuilder ^ module_builder,
array< ::System::Reflection::Assembly^>^ extra_assemblies )
diff --git a/cli_ure/source/native/native_bootstrap.cxx b/cli_ure/source/native/native_bootstrap.cxx
index 0a22d7bb5e63..583dbf30fd4d 100644
--- a/cli_ure/source/native/native_bootstrap.cxx
+++ b/cli_ure/source/native/native_bootstrap.cxx
@@ -352,7 +352,7 @@ public:
bootstrap();
};
-//______________________________________________________________________________
+
::unoidl::com::sun::star::uno::XComponentContext ^
Bootstrap::defaultBootstrap_InitialComponentContext(
::System::String ^ ini_file,
@@ -390,7 +390,7 @@ Bootstrap::defaultBootstrap_InitialComponentContext(
to_cli( xContext ) );
}
-//______________________________________________________________________________
+
::unoidl::com::sun::star::uno::XComponentContext ^
Bootstrap::defaultBootstrap_InitialComponentContext()
{
diff --git a/cli_ure/source/uno_bridge/cli_bridge.cxx b/cli_ure/source/uno_bridge/cli_bridge.cxx
index 7a28582efcd5..8485317810e0 100644
--- a/cli_ure/source/uno_bridge/cli_bridge.cxx
+++ b/cli_ure/source/uno_bridge/cli_bridge.cxx
@@ -44,7 +44,7 @@ void SAL_CALL Mapping_acquire( uno_Mapping * mapping )
Mapping const * that = static_cast< Mapping const * >( mapping );
that->m_bridge->acquire();
}
-//--------------------------------------------------------------------------------------------------
+
void SAL_CALL Mapping_release( uno_Mapping * mapping )
SAL_THROW_EXTERN_C()
{
@@ -53,7 +53,7 @@ void SAL_CALL Mapping_release( uno_Mapping * mapping )
}
-//--------------------------------------------------------------------------------------------------
+
void SAL_CALL Mapping_cli2uno(
uno_Mapping * mapping, void ** ppOut,
void * pIn, typelib_InterfaceTypeDescription * td )
@@ -93,7 +93,7 @@ void SAL_CALL Mapping_cli2uno(
#endif
}
}
-//--------------------------------------------------------------------------------------------------
+
void SAL_CALL Mapping_uno2cli(
uno_Mapping * mapping, void ** ppOut,
void * pIn, typelib_InterfaceTypeDescription * td )
@@ -153,7 +153,7 @@ void SAL_CALL Mapping_uno2cli(
}
}
-//__________________________________________________________________________________________________
+
void SAL_CALL Bridge_free( uno_Mapping * mapping )
SAL_THROW_EXTERN_C()
{
@@ -167,7 +167,7 @@ void SAL_CALL Bridge_free( uno_Mapping * mapping )
namespace cli_uno
{
-//__________________________________________________________________________________________________
+
/** ToDo
I doubt that the case that the ref count raises from 0 to 1
can occur. uno_ext_getMapping returns an acquired mapping. Every time
@@ -195,7 +195,7 @@ void Bridge::acquire() const SAL_THROW(())
}
}
}
-//__________________________________________________________________________________________________
+
void Bridge::release() const SAL_THROW(())
{
if (! osl_atomic_decrement( &m_ref ))
@@ -206,7 +206,7 @@ void Bridge::release() const SAL_THROW(())
: const_cast<Mapping*>(&m_uno2cli) );
}
}
-//__________________________________________________________________________________________________
+
Bridge::Bridge(
uno_Environment * uno_cli_env, uno_ExtEnvironment * uno_env,
bool registered_cli2uno )
@@ -232,7 +232,7 @@ Bridge::Bridge(
}
-//__________________________________________________________________________________________________
+
Bridge::~Bridge() SAL_THROW(())
{
//System::GC::Collect();
@@ -249,7 +249,7 @@ extern "C"
namespace cli_uno
{
-//--------------------------------------------------------------------------------------------------
+
void SAL_CALL cli_env_disposing( uno_Environment * uno_cli_env )
SAL_THROW_EXTERN_C()
{
diff --git a/cli_ure/source/uno_bridge/cli_proxy.cxx b/cli_ure/source/uno_bridge/cli_proxy.cxx
index 09bfe60931e8..092cdfc16efe 100644
--- a/cli_ure/source/uno_bridge/cli_proxy.cxx
+++ b/cli_ure/source/uno_bridge/cli_proxy.cxx
@@ -41,16 +41,16 @@ using namespace cli_uno;
extern "C"
{
-//------------------------------------------------------------------------------
+
void SAL_CALL cli_proxy_free( uno_ExtEnvironment * env, void * proxy )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------------
+
void SAL_CALL cli_proxy_acquire( uno_Interface * pUnoI )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------------
+
void SAL_CALL cli_proxy_release( uno_Interface * pUnoI )
SAL_THROW_EXTERN_C();
-//------------------------------------------------------------------------------
+
void SAL_CALL cli_proxy_dispatch(
uno_Interface * pUnoI, typelib_TypeDescription const * member_td,
void * uno_ret, void * uno_args[], uno_Any ** uno_exc )
@@ -911,7 +911,7 @@ inline void CliProxy::acquire() const
#endif
}
}
-//---------------------------------------------------------------------------
+
inline void CliProxy::release() const
{
if (0 == osl_atomic_decrement( &m_ref ))
@@ -947,7 +947,7 @@ void SAL_CALL cli_proxy_acquire( uno_Interface * pUnoI )
CliProxy const * cliProxy = static_cast< CliProxy const * >( pUnoI );
cliProxy->acquire();
}
-//-----------------------------------------------------------------------------
+
extern "C"
void SAL_CALL cli_proxy_release( uno_Interface * pUnoI )
SAL_THROW_EXTERN_C()
@@ -956,7 +956,7 @@ void SAL_CALL cli_proxy_release( uno_Interface * pUnoI )
cliProxy->release();
}
-//------------------------------------------------------------------------------
+
extern "C"
void SAL_CALL cli_proxy_dispatch(