Kaydet (Commit) 9eeee546 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Bin superfluous whitespace, ASCII art and useless comments

Change-Id: Ic70fe69f407e49604b056cdcb92aa3d656e1aeaf
üst 5215ae54
...@@ -23,16 +23,12 @@ ...@@ -23,16 +23,12 @@
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <cppuhelper/interfacecontainer.h> #include <cppuhelper/interfacecontainer.h>
//... namespace comphelper .......................................................
namespace comphelper namespace comphelper
{ {
// OMutexAndBroadcastHelper - a class which holds a Mutex and a OBroadcastHelper;
// needed because when deriving from OPropertySetHelper,
// the OBroadcastHelper has to be initialized before
//= OMutexAndBroadcastHelper - a class which holds a Mutex and a OBroadcastHelper; // the OPropertySetHelper
//= needed because when deriving from OPropertySetHelper,
//= the OBroadcastHelper has to be initialized before
//= the OPropertySetHelper
class OMutexAndBroadcastHelper class OMutexAndBroadcastHelper
{ {
...@@ -58,6 +54,7 @@ namespace comphelper ...@@ -58,6 +54,7 @@ namespace comphelper
mutable ::osl::Mutex m_aMutex; mutable ::osl::Mutex m_aMutex;
}; };
} }
#endif // INCLUDED_COMPHELPER_BROADCASTHELPER_HXX #endif // INCLUDED_COMPHELPER_BROADCASTHELPER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -30,21 +30,15 @@ ...@@ -30,21 +30,15 @@
#include <osl/mutex.hxx> #include <osl/mutex.hxx>
#include <comphelper/comphelperdllapi.h> #include <comphelper/comphelperdllapi.h>
namespace comphelper namespace comphelper
{ {
//= OEnumerationLock
struct OEnumerationLock struct OEnumerationLock
{ {
public: public:
::osl::Mutex m_aLock; ::osl::Mutex m_aLock;
}; };
//= OEnumerationByName
/** provides an com.sun.star.container::XEnumeration access based /** provides an com.sun.star.container::XEnumeration access based
on an object implementing the com.sun.star.container::XNameAccess interface on an object implementing the com.sun.star.container::XNameAccess interface
*/ */
...@@ -74,9 +68,6 @@ private: ...@@ -74,9 +68,6 @@ private:
COMPHELPER_DLLPRIVATE void impl_stopDisposeListening(); COMPHELPER_DLLPRIVATE void impl_stopDisposeListening();
}; };
//= OEnumerationByIndex
/** provides an com.sun.star.container::XEnumeration access based /** provides an com.sun.star.container::XEnumeration access based
on an object implementing the com.sun.star.container::XNameAccess interface on an object implementing the com.sun.star.container::XNameAccess interface
*/ */
...@@ -103,9 +94,6 @@ private: ...@@ -103,9 +94,6 @@ private:
COMPHELPER_DLLPRIVATE void impl_stopDisposeListening(); COMPHELPER_DLLPRIVATE void impl_stopDisposeListening();
}; };
//= OAnyEnumeration
/** provides an com.sun.star.container::XEnumeration /** provides an com.sun.star.container::XEnumeration
for an outside set vector of Any's. for an outside set vector of Any's.
...@@ -126,12 +114,8 @@ public: ...@@ -126,12 +114,8 @@ public:
}; };
} }
//... namespace comphelper .......................................................
#endif // INCLUDED_COMPHELPER_ENUMHELPER_HXX #endif // INCLUDED_COMPHELPER_ENUMHELPER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -30,14 +30,12 @@ namespace cppu { ...@@ -30,14 +30,12 @@ namespace cppu {
class IPropertyArrayHelper; class IPropertyArrayHelper;
} }
//... namespace comphelper ................................................
namespace comphelper namespace comphelper
{ {
template <typename TYPE> struct OPropertyArrayUsageHelperMutex template <typename TYPE> struct OPropertyArrayUsageHelperMutex
: public rtl::Static< ::osl::Mutex, OPropertyArrayUsageHelperMutex<TYPE> > {}; : public rtl::Static< ::osl::Mutex, OPropertyArrayUsageHelperMutex<TYPE> > {};
template <class TYPE> template <class TYPE>
class OPropertyArrayUsageHelper class OPropertyArrayUsageHelper
{ {
...@@ -78,7 +76,6 @@ protected: ...@@ -78,7 +76,6 @@ protected:
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const = 0; virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const = 0;
}; };
/** a OPropertyArrayUsageHelper which will create an OPropertyArrayAggregationHelper /** a OPropertyArrayUsageHelper which will create an OPropertyArrayAggregationHelper
*/ */
template <class TYPE> template <class TYPE>
...@@ -114,14 +111,12 @@ protected: ...@@ -114,14 +111,12 @@ protected:
virtual sal_Int32 getFirstAggregateId() const { return DEFAULT_AGGREGATE_PROPERTY_ID; } virtual sal_Int32 getFirstAggregateId() const { return DEFAULT_AGGREGATE_PROPERTY_ID; }
}; };
template<class TYPE> template<class TYPE>
sal_Int32 OPropertyArrayUsageHelper< TYPE >::s_nRefCount = 0; sal_Int32 OPropertyArrayUsageHelper< TYPE >::s_nRefCount = 0;
template<class TYPE> template<class TYPE>
::cppu::IPropertyArrayHelper* OPropertyArrayUsageHelper< TYPE >::s_pProps = NULL; ::cppu::IPropertyArrayHelper* OPropertyArrayUsageHelper< TYPE >::s_pProps = NULL;
template <class TYPE> template <class TYPE>
OPropertyArrayUsageHelper<TYPE>::OPropertyArrayUsageHelper() OPropertyArrayUsageHelper<TYPE>::OPropertyArrayUsageHelper()
{ {
...@@ -129,7 +124,6 @@ OPropertyArrayUsageHelper<TYPE>::OPropertyArrayUsageHelper() ...@@ -129,7 +124,6 @@ OPropertyArrayUsageHelper<TYPE>::OPropertyArrayUsageHelper()
++s_nRefCount; ++s_nRefCount;
} }
template <class TYPE> template <class TYPE>
::cppu::IPropertyArrayHelper* OPropertyArrayUsageHelper<TYPE>::getArrayHelper() ::cppu::IPropertyArrayHelper* OPropertyArrayUsageHelper<TYPE>::getArrayHelper()
{ {
...@@ -146,7 +140,6 @@ template <class TYPE> ...@@ -146,7 +140,6 @@ template <class TYPE>
return s_pProps; return s_pProps;
} }
template <class TYPE> inline template <class TYPE> inline
::cppu::IPropertyArrayHelper* OAggregationArrayUsageHelper<TYPE>::createArrayHelper() const ::cppu::IPropertyArrayHelper* OAggregationArrayUsageHelper<TYPE>::createArrayHelper() const
{ {
...@@ -157,11 +150,8 @@ template <class TYPE> inline ...@@ -157,11 +150,8 @@ template <class TYPE> inline
return new OPropertyArrayAggregationHelper(aProps, aAggregateProps, getInfoService(), getFirstAggregateId()); return new OPropertyArrayAggregationHelper(aProps, aAggregateProps, getInfoService(), getFirstAggregateId());
} }
} }
//... namespace comphelper ................................................
#endif // INCLUDED_COMPHELPER_PROPARRHLP_HXX #endif // INCLUDED_COMPHELPER_PROPARRHLP_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -28,17 +28,9 @@ ...@@ -28,17 +28,9 @@
#include <comphelper/comphelperdllapi.h> #include <comphelper/comphelperdllapi.h>
#include <cppu/unotype.hxx> #include <cppu/unotype.hxx>
//= property helper classes
//... namespace comphelper .......................................................
namespace comphelper namespace comphelper
{ {
/** compare two properties by name
*/
// comparing two property instances // comparing two property instances
struct PropertyCompareByName : public ::std::binary_function< ::com::sun::star::beans::Property, ::com::sun::star::beans::Property, bool > struct PropertyCompareByName : public ::std::binary_function< ::com::sun::star::beans::Property, ::com::sun::star::beans::Property, bool >
{ {
...@@ -48,9 +40,6 @@ namespace comphelper ...@@ -48,9 +40,6 @@ namespace comphelper
} }
}; };
/** compare two properties by name
*/
struct PropertyStringEqualFunctor : ::std::binary_function< ::com::sun::star::beans::Property, OUString, bool > struct PropertyStringEqualFunctor : ::std::binary_function< ::com::sun::star::beans::Property, OUString, bool >
{ {
...@@ -65,7 +54,6 @@ namespace comphelper ...@@ -65,7 +54,6 @@ namespace comphelper
} }
}; };
// comparing two property instances
struct PropertyEqualByName : public ::std::binary_function< ::com::sun::star::beans::Property, ::com::sun::star::beans::Property, bool > struct PropertyEqualByName : public ::std::binary_function< ::com::sun::star::beans::Property, ::com::sun::star::beans::Property, bool >
{ {
bool operator() (const ::com::sun::star::beans::Property& x, const ::com::sun::star::beans::Property& y) const bool operator() (const ::com::sun::star::beans::Property& x, const ::com::sun::star::beans::Property& y) const
...@@ -74,11 +62,9 @@ namespace comphelper ...@@ -74,11 +62,9 @@ namespace comphelper
} }
}; };
/// remove the property with the given name from the given sequence /// remove the property with the given name from the given sequence
COMPHELPER_DLLPUBLIC void RemoveProperty(css::uno::Sequence<css::beans::Property>& seqProps, const OUString& _rPropName); COMPHELPER_DLLPUBLIC void RemoveProperty(css::uno::Sequence<css::beans::Property>& seqProps, const OUString& _rPropName);
/** within the given property sequence, modify attributes of a special property /** within the given property sequence, modify attributes of a special property
@param _rProps the sequence of properties to search in @param _rProps the sequence of properties to search in
@param _sPropName the name of the property which's attributes should be modified @param _sPropName the name of the property which's attributes should be modified
...@@ -87,22 +73,16 @@ COMPHELPER_DLLPUBLIC void RemoveProperty(css::uno::Sequence<css::beans::Property ...@@ -87,22 +73,16 @@ COMPHELPER_DLLPUBLIC void RemoveProperty(css::uno::Sequence<css::beans::Property
*/ */
COMPHELPER_DLLPUBLIC void ModifyPropertyAttributes(css::uno::Sequence<css::beans::Property>& _rProps, const OUString& _sPropName, sal_Int16 _nAddAttrib, sal_Int16 _nRemoveAttrib); COMPHELPER_DLLPUBLIC void ModifyPropertyAttributes(css::uno::Sequence<css::beans::Property>& _rProps, const OUString& _sPropName, sal_Int16 _nAddAttrib, sal_Int16 _nRemoveAttrib);
/** check if the given set has the given property. /** check if the given set has the given property.
*/ */
COMPHELPER_DLLPUBLIC bool hasProperty(const OUString& _rName, const css::uno::Reference<css::beans::XPropertySet>& _rxSet); COMPHELPER_DLLPUBLIC bool hasProperty(const OUString& _rName, const css::uno::Reference<css::beans::XPropertySet>& _rxSet);
/** copy properties between property sets, in compliance with the property /** copy properties between property sets, in compliance with the property
attributes of the target object attributes of the target object
*/ */
COMPHELPER_DLLPUBLIC void copyProperties(const css::uno::Reference<css::beans::XPropertySet>& _rxSource, COMPHELPER_DLLPUBLIC void copyProperties(const css::uno::Reference<css::beans::XPropertySet>& _rxSource,
const css::uno::Reference<css::beans::XPropertySet>& _rxDest); const css::uno::Reference<css::beans::XPropertySet>& _rxDest);
//= property conversion helpers
/** helper for implementing ::cppu::OPropertySetHelper::convertFastPropertyValue /** helper for implementing ::cppu::OPropertySetHelper::convertFastPropertyValue
@param _rConvertedValue the conversion result (if successful) @param _rConvertedValue the conversion result (if successful)
@param _rOldValue the old value of the property, calculated from _rCurrentValue @param _rOldValue the old value of the property, calculated from _rCurrentValue
...@@ -192,9 +172,7 @@ inline bool tryPropertyValue(css::uno::Any& /*out*/_rConvertedValue, css::uno::A ...@@ -192,9 +172,7 @@ inline bool tryPropertyValue(css::uno::Any& /*out*/_rConvertedValue, css::uno::A
*/ */
COMPHELPER_DLLPUBLIC bool tryPropertyValue(css::uno::Any& _rConvertedValue, css::uno::Any& _rOldValue, const css::uno::Any& _rValueToSet, const css::uno::Any& _rCurrentValue, const css::uno::Type& _rExpectedType); COMPHELPER_DLLPUBLIC bool tryPropertyValue(css::uno::Any& _rConvertedValue, css::uno::Any& _rOldValue, const css::uno::Any& _rValueToSet, const css::uno::Any& _rCurrentValue, const css::uno::Type& _rExpectedType);
} }
//... namespace comphelper .......................................................
#endif // INCLUDED_COMPHELPER_PROPERTY_HXX #endif // INCLUDED_COMPHELPER_PROPERTY_HXX
......
...@@ -25,15 +25,8 @@ ...@@ -25,15 +25,8 @@
#include <com/sun/star/beans/XMultiPropertySet.hpp> #include <com/sun/star/beans/XMultiPropertySet.hpp>
#include <comphelper/comphelperdllapi.h> #include <comphelper/comphelperdllapi.h>
//= property helper classes
//... namespace comphelper ................................................
namespace comphelper namespace comphelper
{ {
class PropertySetInfo; class PropertySetInfo;
struct PropertyMapEntry; struct PropertyMapEntry;
class PropertySetHelperImpl; class PropertySetHelperImpl;
...@@ -82,9 +75,7 @@ public: ...@@ -82,9 +75,7 @@ public:
virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual ::com::sun::star::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };
} }
//... namespace comphelper..................................................
#endif // _UTL_PROPERTYSETHELPER_HXX_ #endif // _UTL_PROPERTYSETHELPER_HXX_
......
...@@ -28,15 +28,9 @@ ...@@ -28,15 +28,9 @@
#include <cppuhelper/implbase1.hxx> #include <cppuhelper/implbase1.hxx>
#include <comphelper/comphelperdllapi.h> #include <comphelper/comphelperdllapi.h>
//= property helper classes
//... namespace comphelper .......................................................
namespace comphelper namespace comphelper
{ {
struct PropertyMapEntry struct PropertyMapEntry
{ {
OUString maName; OUString maName;
...@@ -80,9 +74,7 @@ public: ...@@ -80,9 +74,7 @@ public:
virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
}; };
} }
//... namespace comphelper .......................................................
#endif // _UTL_PROPERTSETINFO_HXX_ #endif // _UTL_PROPERTSETINFO_HXX_
......
...@@ -26,19 +26,15 @@ ...@@ -26,19 +26,15 @@
#include <math.h> #include <math.h>
#include <functional> #include <functional>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/beans/NamedValue.hpp> #include <com/sun/star/beans/NamedValue.hpp>
//... namespace comphelper ................................................
namespace comphelper namespace comphelper
{ {
// comparison functors // comparison functors
struct UStringMixLess : public ::std::binary_function< OUString, OUString, bool> struct UStringMixLess : public ::std::binary_function< OUString, OUString, bool>
...@@ -57,7 +53,6 @@ public: ...@@ -57,7 +53,6 @@ public:
bool isCaseSensitive() const {return m_bCaseSensitive;} bool isCaseSensitive() const {return m_bCaseSensitive;}
}; };
class UStringMixEqual: public std::binary_function<OUString, OUString, bool> class UStringMixEqual: public std::binary_function<OUString, OUString, bool>
{ {
bool m_bCaseSensitive; bool m_bCaseSensitive;
...@@ -93,10 +88,7 @@ public: ...@@ -93,10 +88,7 @@ public:
} }
}; };
/** STL-compliant structure for comparing Reference&lt; &lt;iface&gt; &gt; instances
//= OInterfaceCompare
/** is stl-compliant structure for comparing Reference&lt; &lt;iface&gt; &gt; instances
*/ */
template < class IAFCE > template < class IAFCE >
struct OInterfaceCompare struct OInterfaceCompare
...@@ -132,7 +124,6 @@ inline mem_fun1_t<_Tp,_Arg> mem_fun(void (_Tp::*__f)(_Arg)) ...@@ -132,7 +124,6 @@ inline mem_fun1_t<_Tp,_Arg> mem_fun(void (_Tp::*__f)(_Arg))
return mem_fun1_t<_Tp,_Arg>(__f); return mem_fun1_t<_Tp,_Arg>(__f);
} }
/** output iterator that appends OUStrings into an OUStringBuffer. /** output iterator that appends OUStrings into an OUStringBuffer.
*/ */
class OUStringBufferAppender : class OUStringBufferAppender :
...@@ -161,7 +152,6 @@ private: ...@@ -161,7 +152,6 @@ private:
OUStringBuffer & m_rBuffer; OUStringBuffer & m_rBuffer;
}; };
/** algorithm similar to std::copy, but inserts a separator between elements. /** algorithm similar to std::copy, but inserts a separator between elements.
*/ */
template< typename ForwardIter, typename OutputIter, typename T > template< typename ForwardIter, typename OutputIter, typename T >
...@@ -185,9 +175,7 @@ OutputIter intersperse( ...@@ -185,9 +175,7 @@ OutputIter intersperse(
return out; return out;
} }
} }
//... namespace comphelper ................................................
#endif // INCLUDED_COMPHELPER_STL_TYPES_HXX #endif // INCLUDED_COMPHELPER_STL_TYPES_HXX
......
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