diff options
author | Philipp Hofer <philipp.hofer@protonmail.com> | 2020-11-12 13:11:21 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2020-11-19 19:24:26 +0100 |
commit | 481fdcc619dadf0a65e5af73b0c33b26df2400e5 (patch) | |
tree | bfd3facc65a04ff23b78bdc8fff30214a7398fba /salhelper | |
parent | 5d8cf2021d8f7f171924f2b1adf824532cd67497 (diff) |
tdf#123936 Formatting files in module salhelper with clang-format
Change-Id: I2c1337f54934222580a95ac90c162d880e923110
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105700
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'salhelper')
-rw-r--r-- | salhelper/test/Symbols/samplelib.hxx | 11 | ||||
-rw-r--r-- | salhelper/test/dynamicloader/samplelib.hxx | 11 | ||||
-rw-r--r-- | salhelper/test/rtti/rttitest.cxx | 6 | ||||
-rw-r--r-- | salhelper/test/rtti/samplelibrtti.hxx | 17 |
4 files changed, 20 insertions, 25 deletions
diff --git a/salhelper/test/Symbols/samplelib.hxx b/salhelper/test/Symbols/samplelib.hxx index d1213f6dea8b..99dc0f6f774a 100644 --- a/salhelper/test/Symbols/samplelib.hxx +++ b/salhelper/test/Symbols/samplelib.hxx @@ -24,19 +24,16 @@ struct SampleLib_Api { - sal_Int32 (*funcA)( sal_Int32 ); - double (*funcB)( double ); + sal_Int32 (*funcA)(sal_Int32); + double (*funcB)(double); }; - typedef SampleLib_Api* (*InitSampleLib_Api)(void); #define SAMPLELIB_INIT_FUNCTION_NAME "initSampleLibApi" - -sal_Int32 funcA( sal_Int32 a); -double funcB( double a); - +sal_Int32 funcA(sal_Int32 a); +double funcB(double a); #endif diff --git a/salhelper/test/dynamicloader/samplelib.hxx b/salhelper/test/dynamicloader/samplelib.hxx index 7b65a0ceb182..c254470fbbb6 100644 --- a/salhelper/test/dynamicloader/samplelib.hxx +++ b/salhelper/test/dynamicloader/samplelib.hxx @@ -24,19 +24,16 @@ struct SampleLib_Api { - sal_Int32 (*funcA)( sal_Int32 ); - double (*funcB)( double ); + sal_Int32 (*funcA)(sal_Int32); + double (*funcB)(double); }; - typedef SampleLib_Api* (*InitSampleLib_Api)(void); #define SAMPLELIB_INIT_FUNCTION_NAME "initSampleLibApi" - -sal_Int32 SAL_CALL funcA( sal_Int32 a); -double SAL_CALL funcB( double a); - +sal_Int32 SAL_CALL funcA(sal_Int32 a); +double SAL_CALL funcB(double a); #endif diff --git a/salhelper/test/rtti/rttitest.cxx b/salhelper/test/rtti/rttitest.cxx index 7e753d3a6f43..0e06650034cc 100644 --- a/salhelper/test/rtti/rttitest.cxx +++ b/salhelper/test/rtti/rttitest.cxx @@ -23,14 +23,14 @@ int main() { MyClassB b; - MyClassA* pA= &b; + MyClassA* pA = &b; // test the virtual function pA->funcA(); - if( typeid( b) == typeid( pA)) + if (typeid(b) == typeid(pA)) printf("\nsame types"); - MyClassB* pB= dynamic_cast<MyClassB* >( pA); + MyClassB* pB = dynamic_cast<MyClassB*>(pA); pB->funcA(); return 0; } diff --git a/salhelper/test/rtti/samplelibrtti.hxx b/salhelper/test/rtti/samplelibrtti.hxx index ae7e984a943d..b6bbe62224eb 100644 --- a/salhelper/test/rtti/samplelibrtti.hxx +++ b/salhelper/test/rtti/samplelibrtti.hxx @@ -23,20 +23,21 @@ class MyClassA { public: - virtual void funcA(); - virtual void funcB(); + virtual void funcA(); + virtual void funcB(); + protected: - virtual void funcC(); + virtual void funcC(); }; - -class MyClassB: public MyClassA +class MyClassB : public MyClassA { public: - virtual void funcA(); - virtual void funcB(); + virtual void funcA(); + virtual void funcB(); + protected: - virtual void funcC(); + virtual void funcC(); }; #endif |