include/svl/IndexedStyleSheets.hxx | 6 +----- include/svl/adrparse.hxx | 6 +----- include/svl/asiancfg.hxx | 6 +----- include/svl/broadcast.hxx | 6 +----- include/svl/cenumitm.hxx | 6 +----- include/svl/cintitem.hxx | 6 +----- include/svl/converter.hxx | 5 +---- include/svl/ctloptions.hxx | 5 +---- include/svl/currencytable.hxx | 6 +----- include/svl/documentlockfile.hxx | 6 +----- include/svl/flagitem.hxx | 5 +---- include/svl/fstathelper.hxx | 6 +----- include/svl/globalnameitem.hxx | 5 +---- include/svl/grabbagitem.hxx | 4 +--- include/svl/gridprinter.hxx | 6 +----- include/svl/hint.hxx | 5 +---- include/svl/ilstitem.hxx | 6 +----- include/svl/imageitm.hxx | 6 +----- include/svl/inethist.hxx | 5 +---- 19 files changed, 19 insertions(+), 87 deletions(-)
New commits: commit a0cbaa57a1e228e4d10b7befaad33b87e34e9b4a Author: Ethan Garcia <[email protected]> AuthorDate: Tue Mar 10 23:09:56 2026 -0700 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Wed Mar 11 10:17:13 2026 +0100 tdf#143148 use pragma once in include/svl Change-Id: If7e3ee66fbfc882efea6b5e0af6108757a346a33 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201424 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <[email protected]> diff --git a/include/svl/IndexedStyleSheets.hxx b/include/svl/IndexedStyleSheets.hxx index 425c508ea6f3..50be24c91768 100644 --- a/include/svl/IndexedStyleSheets.hxx +++ b/include/svl/IndexedStyleSheets.hxx @@ -6,9 +6,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#ifndef INCLUDED_SVL_INDEXEDSTYLESHEETS_HXX -#define INCLUDED_SVL_INDEXEDSTYLESHEETS_HXX +#pragma once #include <svl/style.hxx> #include <rtl/ustring.hxx> @@ -184,6 +182,4 @@ private: } /* namespace svl */ -#endif // INCLUDED_SVL_INDEXEDSTYLESHEETS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/adrparse.hxx b/include/svl/adrparse.hxx index f19fc7ef0627..7e1a770e34c6 100644 --- a/include/svl/adrparse.hxx +++ b/include/svl/adrparse.hxx @@ -16,9 +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_SVL_ADRPARSE_HXX -#define INCLUDED_SVL_ADRPARSE_HXX +#pragma once #include <rtl/ustring.hxx> #include <svl/svldllapi.h> @@ -45,6 +43,4 @@ public: } }; -#endif // INCLUDED_SVL_ADRPARSE_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/asiancfg.hxx b/include/svl/asiancfg.hxx index a5011f1a261d..d8f2b259f576 100644 --- a/include/svl/asiancfg.hxx +++ b/include/svl/asiancfg.hxx @@ -16,9 +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_SVL_ASIANCFG_HXX -#define INCLUDED_SVL_ASIANCFG_HXX +#pragma once #include <sal/config.h> @@ -74,6 +72,4 @@ private: std::unique_ptr< Impl > impl_; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/broadcast.hxx b/include/svl/broadcast.hxx index 30592d22c6c7..7263b0c8edc1 100644 --- a/include/svl/broadcast.hxx +++ b/include/svl/broadcast.hxx @@ -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_SVL_BROADCAST_HXX -#define INCLUDED_SVL_BROADCAST_HXX +#pragma once #include <svl/svldllapi.h> @@ -97,7 +96,4 @@ private: mutable bool mbDestNormalized:1; }; - -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/cenumitm.hxx b/include/svl/cenumitm.hxx index d488423f7138..fd9a974620c4 100644 --- a/include/svl/cenumitm.hxx +++ b/include/svl/cenumitm.hxx @@ -16,9 +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_SVL_CENUMITM_HXX -#define INCLUDED_SVL_CENUMITM_HXX +#pragma once #include <svl/svldllapi.h> #include <svl/poolitem.hxx> @@ -54,6 +52,4 @@ public: virtual void SetBoolValue(bool bValue); }; -#endif // INCLUDED_SVL_CENUMITM_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/cintitem.hxx b/include/svl/cintitem.hxx index da17fb7847e4..46b1f11c4549 100644 --- a/include/svl/cintitem.hxx +++ b/include/svl/cintitem.hxx @@ -16,9 +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_SVL_CINTITEM_HXX -#define INCLUDED_SVL_CINTITEM_HXX +#pragma once #include <svl/svldllapi.h> #include <svl/poolitem.hxx> @@ -160,6 +158,4 @@ public: void SetValue(sal_uInt32 nTheValue) { ASSERT_CHANGE_REFCOUNTED_ITEM; m_nValue = nTheValue; } }; -#endif // INCLUDED_SVL_CINTITEM_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/converter.hxx b/include/svl/converter.hxx index 7b2000c88e5a..1da3919fa508 100644 --- a/include/svl/converter.hxx +++ b/include/svl/converter.hxx @@ -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_SVL_CONVERTER_HXX -#define INCLUDED_SVL_CONVERTER_HXX +#pragma once #include <svl/svldllapi.h> @@ -28,6 +27,4 @@ public: SVL_DLLPUBLIC static sal_Int32 ConvertPrecisionToOdbc(sal_Int32 _nLen, sal_Int32 _nScale); }; -#endif //_CONVERTER_HXX_ - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/ctloptions.hxx b/include/svl/ctloptions.hxx index cd980f90b5b4..38d2f0bade44 100644 --- a/include/svl/ctloptions.hxx +++ b/include/svl/ctloptions.hxx @@ -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_SVL_CTLOPTIONS_HXX -#define INCLUDED_SVL_CTLOPTIONS_HXX +#pragma once #include <svl/svldllapi.h> #include <unotools/options.hxx> @@ -71,6 +70,4 @@ public: static TextNumerals GetCTLTextNumerals(); }; -#endif // INCLUDED_SVL_CTLOPTIONS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/currencytable.hxx b/include/svl/currencytable.hxx index a990ba4e00f9..af95a81c75bf 100644 --- a/include/svl/currencytable.hxx +++ b/include/svl/currencytable.hxx @@ -6,9 +6,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#ifndef INCLUDED_SVL_CURRENCYTABLE_HXX -#define INCLUDED_SVL_CURRENCYTABLE_HXX +#pragma once #include <svl/svldllapi.h> #include <svl/zforlist.hxx> @@ -38,6 +36,4 @@ public: void insert(const iterator& it, NfCurrencyEntry p); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/documentlockfile.hxx b/include/svl/documentlockfile.hxx index 0380c226c616..26f74f47c007 100644 --- a/include/svl/documentlockfile.hxx +++ b/include/svl/documentlockfile.hxx @@ -16,9 +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_SVL_DOCUMENTLOCKFILE_HXX -#define INCLUDED_SVL_DOCUMENTLOCKFILE_HXX +#pragma once #include <svl/svldllapi.h> @@ -67,6 +65,4 @@ protected: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/flagitem.hxx b/include/svl/flagitem.hxx index 692da3e29b4a..8113ed034ceb 100644 --- a/include/svl/flagitem.hxx +++ b/include/svl/flagitem.hxx @@ -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_SVL_FLAGITEM_HXX -#define INCLUDED_SVL_FLAGITEM_HXX +#pragma once #include <svl/poolitem.hxx> #include <svl/svldllapi.h> @@ -45,6 +44,4 @@ public: bool GetFlag( sal_uInt8 nFlag ) const { return (nVal & ( 1<<nFlag)); } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/fstathelper.hxx b/include/svl/fstathelper.hxx index f6e4343f4108..e90ca798a7ea 100644 --- a/include/svl/fstathelper.hxx +++ b/include/svl/fstathelper.hxx @@ -16,9 +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_SVL_FSTATHELPER_HXX -#define INCLUDED_SVL_FSTATHELPER_HXX +#pragma once #include <rtl/ustring.hxx> #include <svl/svldllapi.h> @@ -53,6 +51,4 @@ SVL_DLLPUBLIC bool IsFolder( const OUString& rURL ); } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/globalnameitem.hxx b/include/svl/globalnameitem.hxx index 198330020697..6e87059d726a 100644 --- a/include/svl/globalnameitem.hxx +++ b/include/svl/globalnameitem.hxx @@ -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_SVL_GLOBALNAMEITEM_HXX -#define INCLUDED_SVL_GLOBALNAMEITEM_HXX +#pragma once #include <svl/svldllapi.h> #include <tools/globname.hxx> @@ -50,6 +49,4 @@ public: sal_uInt8 nMemberId = 0 ) const override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/grabbagitem.hxx b/include/svl/grabbagitem.hxx index ea1dbef3f22d..eaf27ac2b502 100644 --- a/include/svl/grabbagitem.hxx +++ b/include/svl/grabbagitem.hxx @@ -6,8 +6,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SVL_GRABBAGITEM_HXX -#define INCLUDED_SVL_GRABBAGITEM_HXX +#pragma once #include <map> @@ -43,6 +42,5 @@ public: bool PutValue(const css::uno::Any& rVal, sal_uInt8 nMemberId) override; bool QueryValue(css::uno::Any& rVal, sal_uInt8 nMemberId = 0) const override; }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/gridprinter.hxx b/include/svl/gridprinter.hxx index e69d9f50ca8f..5c2c8e9c0568 100644 --- a/include/svl/gridprinter.hxx +++ b/include/svl/gridprinter.hxx @@ -6,9 +6,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#ifndef INCLUDED_SVL_GRIDPRINTER_HXX -#define INCLUDED_SVL_GRIDPRINTER_HXX +#pragma once #include <rtl/ustring.hxx> #include <svl/svldllapi.h> @@ -33,6 +31,4 @@ public: }; } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/hint.hxx b/include/svl/hint.hxx index a4a5b106a61c..ce7ec1896ee1 100644 --- a/include/svl/hint.hxx +++ b/include/svl/hint.hxx @@ -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_SVL_HINT_HXX -#define INCLUDED_SVL_HINT_HXX +#pragma once #include <ostream> #include <string> @@ -357,6 +356,4 @@ public: SfxHintId GetId() const { return mnId; } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/ilstitem.hxx b/include/svl/ilstitem.hxx index 19fa21406c4d..baa337fb20a4 100644 --- a/include/svl/ilstitem.hxx +++ b/include/svl/ilstitem.hxx @@ -16,9 +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_SVL_ILSTITEM_HXX -#define INCLUDED_SVL_ILSTITEM_HXX +#pragma once #include <svl/svldllapi.h> #include <svl/poolitem.hxx> @@ -51,6 +49,4 @@ public: virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; }; -#endif // INCLUDED_SVL_ILSTITEM_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/imageitm.hxx b/include/svl/imageitm.hxx index 321931bd9bf3..db488d99fd4e 100644 --- a/include/svl/imageitm.hxx +++ b/include/svl/imageitm.hxx @@ -16,9 +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_SVL_IMAGEITM_HXX -#define INCLUDED_SVL_IMAGEITM_HXX +#pragma once #include <svl/svldllapi.h> #include <svl/intitem.hxx> @@ -49,6 +47,4 @@ private: bool mbMirrored; }; -#endif // _SFX_IMAGEITM_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svl/inethist.hxx b/include/svl/inethist.hxx index ea317bac45e6..ebe1479db011 100644 --- a/include/svl/inethist.hxx +++ b/include/svl/inethist.hxx @@ -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_SVL_INETHIST_HXX -#define INCLUDED_SVL_INETHIST_HXX +#pragma once #include <svl/SfxBroadcaster.hxx> #include <svl/hint.hxx> @@ -94,6 +93,4 @@ public: const INetURLObject* GetObject() const { return pObj; } }; -#endif // INCLUDED_SVL_INETHIST_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
