tdf#124176 Use pragma once instead of include guards

Change-Id: I491742c51ddc7c97f02b148dfb81d9ba820a759e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108600
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Alchemist 2020-12-31 18:04:12 +05:30 committed by Julien Nabet
parent 3140d30ba5
commit 74583d24f6
9 changed files with 12 additions and 32 deletions

View File

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_IO_SOURCE_ACCEPTOR_ACCEPTOR_HXX
#define INCLUDED_IO_SOURCE_ACCEPTOR_ACCEPTOR_HXX
#pragma once
#include <osl/pipe.hxx>
#include <osl/socket.hxx>
@ -71,6 +70,5 @@ namespace io_acceptor {
}
#endif // INCLUDED_IO_SOURCE_ACCEPTOR_ACCEPTOR_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_IO_SOURCE_CONNECTOR_CONNECTOR_HXX
#define INCLUDED_IO_SOURCE_CONNECTOR_CONNECTOR_HXX
#pragma once
#include <cppuhelper/implbase.hxx>
@ -90,6 +89,5 @@ namespace stoc_connector
};
}
#endif // INCLUDED_IO_SOURCE_CONNECTOR_CONNECTOR_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_IO_SOURCE_STM_STREAMHELPER_HXX
#define INCLUDED_IO_SOURCE_STM_STREAMHELPER_HXX
#pragma once
#include <com/sun/star/uno/Sequence.hxx>
@ -83,6 +82,4 @@ public:
}
#endif // INCLUDED_IO_SOURCE_STM_STREAMHELPER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -17,9 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_IO_TEST_STM_TESTFACTREG_HXX
#define INCLUDED_IO_TEST_STM_TESTFACTREG_HXX
#pragma once
#include <rtl/strbuf.hxx>
Reference< XInterface > SAL_CALL OPipeTest_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw( Exception );
@ -106,6 +104,4 @@ Sequence<sal_Int8> createIntSeq( sal_Int32 i );
}\
((void)0)
#endif // INCLUDED_IO_TEST_STM_TESTFACTREG_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX
#define INCLUDED_SW_INC_ACCESSIBILITYOPTIONS_HXX
#pragma once
struct SwAccessibilityOptions
{
@ -34,6 +33,5 @@ struct SwAccessibilityOptions
bool IsStopAnimatedGraphics() const { return bIsStopAnimatedGraphics;}
void SetStopAnimatedGraphics( bool b ) { bIsStopAnimatedGraphics = b; }
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_USRFLD_HXX
#define INCLUDED_SW_INC_USRFLD_HXX
#pragma once
#include "swdllapi.h"
#include "fldbas.hxx"
@ -129,6 +128,4 @@ public:
void dumpAsXml(xmlTextWriterPtr pWriter) const override;
};
#endif // INCLUDED_SW_INC_USRFLD_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -16,8 +16,8 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_VIEWSH_HXX
#define INCLUDED_SW_INC_VIEWSH_HXX
#pragma once
#include "swdllapi.h"
#include "swtypes.hxx"
@ -614,6 +614,5 @@ inline const SfxItemPool& SwViewShell::GetAttrPool() const
return const_cast<SwViewShell*>(this)->GetAttrPool();
}
#endif // INCLUDED_SW_INC_VIEWSH_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_VISCRS_HXX
#define INCLUDED_SW_INC_VISCRS_HXX
#pragma once
#include <config_feature_desktop.h>
@ -207,6 +206,5 @@ public:
const SwShellTableCursor* GetPrev() const { return dynamic_cast<SwShellTableCursor const *>(GetPrevInRing()); }
};
#endif // INCLUDED_SW_INC_VISCRS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -16,8 +16,9 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SW_INC_WDOCSH_HXX
#define INCLUDED_SW_INC_WDOCSH_HXX
#pragma once
#include "swdllapi.h"
#include "docsh.hxx"
@ -47,6 +48,4 @@ public:
void SetSourcePara(sal_uInt16 nSet) { m_nSourcePara = nSet; }
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */