tdf#143148 Use pragma once instead of include guards in connectivity

Change-Id: I337b16463f15c42469133bb0eb4620ca1133fd42
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193968
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
This commit is contained in:
praweshm
2025-11-16 11:10:50 +01:00
committed by Ilmari Lauhakangas
parent 87f3123c5e
commit be49c60b2a
9 changed files with 9 additions and 40 deletions
+1 -4
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_CONNECTIVITY_COMMONTOOLS_HXX
#define INCLUDED_CONNECTIVITY_COMMONTOOLS_HXX
#pragma once
#include <sal/config.h>
#include <config_java.h>
@@ -162,6 +161,4 @@ namespace connectivity
return cppu::supportsService(this, rServiceName); \
} \
#endif // INCLUDED_CONNECTIVITY_COMMONTOOLS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -3
View File
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CONNECTIVITY_CONNECTIONWRAPPER_HXX
#define INCLUDED_CONNECTIVITY_CONNECTIONWRAPPER_HXX
#pragma once
#include <sal/config.h>
@@ -89,6 +88,5 @@ namespace connectivity
,const OUString& _rPassword = OUString());
};
}
#endif // INCLUDED_CONNECTIVITY_CONNECTIONWRAPPER_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -5
View File
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CONNECTIVITY_CONNCLEANUP_HXX
#define INCLUDED_CONNECTIVITY_CONNCLEANUP_HXX
#pragma once
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/beans/XPropertyChangeListener.hpp>
@@ -84,7 +83,4 @@ namespace dbtools
} // namespace dbtools
#endif // INCLUDED_CONNECTIVITY_CONNCLEANUP_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -5
View File
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CONNECTIVITY_DBCHARSET_HXX
#define INCLUDED_CONNECTIVITY_DBCHARSET_HXX
#pragma once
#include <config_options.h>
#include <sal/config.h>
@@ -144,7 +143,4 @@ namespace dbtools
} // namespace dbtools
#endif // INCLUDED_CONNECTIVITY_DBCHARSET_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CONNECTIVITY_DBCONVERSION_HXX
#define INCLUDED_CONNECTIVITY_DBCONVERSION_HXX
#pragma once
#include <connectivity/dbtoolsdllapi.hxx>
#include <rtl/ustring.hxx>
@@ -182,6 +181,4 @@ namespace dbtools::DBTypeConversion
} // namespace dbtools::DBTypeConversion
#endif // INCLUDED_CONNECTIVITY_DBCONVERSION_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -6
View File
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CONNECTIVITY_DBEXCEPTION_HXX
#define INCLUDED_CONNECTIVITY_DBEXCEPTION_HXX
#pragma once
#include <config_options.h>
#include <connectivity/dbtoolsdllapi.hxx>
@@ -327,8 +326,4 @@ OOO_DLLPUBLIC_DBTOOLS OUString getStandardSQLState( StandardSQLState _eState );
} // namespace dbtools
#endif // INCLUDED_CONNECTIVITY_DBEXCEPTION_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -5
View File
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CONNECTIVITY_DBMETADATA_HXX
#define INCLUDED_CONNECTIVITY_DBMETADATA_HXX
#pragma once
#include <memory>
#include <connectivity/dbtoolsdllapi.hxx>
@@ -188,7 +187,4 @@ namespace dbtools
} // namespace dbtools
#endif // INCLUDED_CONNECTIVITY_DBMETADATA_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CONNECTIVITY_DBTOOLS_HXX
#define INCLUDED_CONNECTIVITY_DBTOOLS_HXX
#pragma once
#include <sal/config.h>
@@ -873,6 +872,4 @@ namespace dbase
} // namespace connectivity::dbase
} // namespace connectivity
#endif // INCLUDED_CONNECTIVITY_DBTOOLS_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -4
View File
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_CONNECTIVITY_DBTOOLSDLLAPI_HXX
#define INCLUDED_CONNECTIVITY_DBTOOLSDLLAPI_HXX
#pragma once
#include <sal/config.h>
@@ -30,6 +29,4 @@
#define OOO_DLLPUBLIC_DBTOOLS SAL_DLLPUBLIC_IMPORT
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */