summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorTRaXIn <raghav.29.khanna@gmail.com>2020-11-10 17:38:55 +0530
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2020-11-11 08:03:47 +0100
commit98076bc83167dca559800ea882c38ef4fca873b7 (patch)
treece7d4f61e3062922e9b4aef5b241f751c5064117 /xmlsecurity
parent6d5a4c40b617c8e4474af43ad4e46c5a3d415922 (diff)
tdf#124176 Use #pragma once in xmlsecurity
Change-Id: I1e27a17575963d084eb761f5a715f451db4bac62 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105522 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/inc/biginteger.hxx5
-rw-r--r--xmlsecurity/inc/certificate.hxx5
-rw-r--r--xmlsecurity/inc/certificatechooser.hxx5
-rw-r--r--xmlsecurity/inc/certificateviewer.hxx6
-rw-r--r--xmlsecurity/inc/digitalsignaturesdialog.hxx5
-rw-r--r--xmlsecurity/inc/documentsignaturehelper.hxx5
-rw-r--r--xmlsecurity/inc/documentsignaturemanager.hxx5
-rw-r--r--xmlsecurity/inc/macrosecurity.hxx6
-rw-r--r--xmlsecurity/inc/pdfsignaturehelper.hxx5
-rw-r--r--xmlsecurity/inc/resourcemanager.hxx5
-rw-r--r--xmlsecurity/inc/xmlsignaturehelper.hxx5
-rw-r--r--xmlsecurity/inc/xmlsignaturehelper2.hxx5
-rw-r--r--xmlsecurity/inc/xsecctl.hxx5
13 files changed, 13 insertions, 54 deletions
diff --git a/xmlsecurity/inc/biginteger.hxx b/xmlsecurity/inc/biginteger.hxx
index d07ecf45d8af..2e21094fab00 100644
--- a/xmlsecurity/inc/biginteger.hxx
+++ b/xmlsecurity/inc/biginteger.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_INC_BIGINTEGER_HXX
-#define INCLUDED_XMLSECURITY_INC_BIGINTEGER_HXX
+#pragma once
#include <sal/config.h>
#include <rtl/ustring.hxx>
@@ -33,6 +32,4 @@ XSECXMLSEC_DLLPUBLIC OUString bigIntegerToNumericString( const css::uno::Sequenc
XSECXMLSEC_DLLPUBLIC css::uno::Sequence< sal_Int8 > numericStringToBigInteger ( const OUString& serialNumber );
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/certificate.hxx b/xmlsecurity/inc/certificate.hxx
index a051d69831cd..bd24bcd72c00 100644
--- a/xmlsecurity/inc/certificate.hxx
+++ b/xmlsecurity/inc/certificate.hxx
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_XMLSECURITY_INC_CERTIFICATE_H
-#define INCLUDED_XMLSECURITY_INC_CERTIFICATE_H
+#pragma once
#include <sal/types.h>
@@ -41,6 +40,4 @@ protected:
};
}
-#endif // INCLUDED_XMLSECURITY_INC_CERTIFICATE_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/certificatechooser.hxx b/xmlsecurity/inc/certificatechooser.hxx
index 437523370d27..fd943fbd4a81 100644
--- a/xmlsecurity/inc/certificatechooser.hxx
+++ b/xmlsecurity/inc/certificatechooser.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_INC_CERTIFICATECHOOSER_HXX
-#define INCLUDED_XMLSECURITY_INC_CERTIFICATECHOOSER_HXX
+#pragma once
#include <com/sun/star/uno/Sequence.hxx>
#include <vcl/weld.hxx>
@@ -93,6 +92,4 @@ public:
static OUString UsageInClearText(int bits);
};
-#endif // INCLUDED_XMLSECURITY_INC_CERTIFICATECHOOSER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/certificateviewer.hxx b/xmlsecurity/inc/certificateviewer.hxx
index e0c42416b8b4..1d0ec5f72e2d 100644
--- a/xmlsecurity/inc/certificateviewer.hxx
+++ b/xmlsecurity/inc/certificateviewer.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_INC_CERTIFICATEVIEWER_HXX
-#define INCLUDED_XMLSECURITY_INC_CERTIFICATEVIEWER_HXX
+#pragma once
#include <vcl/weld.hxx>
@@ -154,7 +153,4 @@ public:
void ActivatePage();
};
-
-#endif // INCLUDED_XMLSECURITY_INC_CERTIFICATEVIEWER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/digitalsignaturesdialog.hxx b/xmlsecurity/inc/digitalsignaturesdialog.hxx
index 6497a633786d..f062c7da9d8e 100644
--- a/xmlsecurity/inc/digitalsignaturesdialog.hxx
+++ b/xmlsecurity/inc/digitalsignaturesdialog.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_INC_DIGITALSIGNATURESDIALOG_HXX
-#define INCLUDED_XMLSECURITY_INC_DIGITALSIGNATURESDIALOG_HXX
+#pragma once
#include <vcl/weld.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
@@ -119,6 +118,4 @@ public:
bool SignaturesChanged() const { return mbSignaturesChanged; }
};
-#endif // INCLUDED_XMLSECURITY_INC_DIGITALSIGNATURESDIALOG_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/documentsignaturehelper.hxx b/xmlsecurity/inc/documentsignaturehelper.hxx
index d96275a36a48..d517787af0cf 100644
--- a/xmlsecurity/inc/documentsignaturehelper.hxx
+++ b/xmlsecurity/inc/documentsignaturehelper.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_INC_DOCUMENTSIGNATUREHELPER_HXX
-#define INCLUDED_XMLSECURITY_INC_DOCUMENTSIGNATUREHELPER_HXX
+#pragma once
#include <com/sun/star/uno/Reference.h>
#include <rtl/ustring.hxx>
@@ -102,6 +101,4 @@ namespace DocumentSignatureHelper
const bool bWriteSignatureLineData);
};
-#endif // INCLUDED_XMLSECURITY_INC_DOCUMENTSIGNATUREHELPER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/documentsignaturemanager.hxx b/xmlsecurity/inc/documentsignaturemanager.hxx
index 3854571e9ac3..06a1a4194be3 100644
--- a/xmlsecurity/inc/documentsignaturemanager.hxx
+++ b/xmlsecurity/inc/documentsignaturemanager.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_INC_DOCUMENTSIGNATUREMANAGER_HXX
-#define INCLUDED_XMLSECURITY_INC_DOCUMENTSIGNATUREMANAGER_HXX
+#pragma once
#include "xmlsecuritydllapi.h"
@@ -133,6 +132,4 @@ public:
}
};
-#endif // INCLUDED_XMLSECURITY_INC_DOCUMENTSIGNATUREMANAGER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/macrosecurity.hxx b/xmlsecurity/inc/macrosecurity.hxx
index 49ea1edcb49c..1081dc8bba0f 100644
--- a/xmlsecurity/inc/macrosecurity.hxx
+++ b/xmlsecurity/inc/macrosecurity.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_INC_MACROSECURITY_HXX
-#define INCLUDED_XMLSECURITY_INC_MACROSECURITY_HXX
+#pragma once
#include <vcl/weld.hxx>
#include <unotools/securityoptions.hxx>
@@ -125,7 +124,4 @@ public:
virtual void ClosePage() override;
};
-
-#endif // INCLUDED_XMLSECURITY_INC_MACROSECURITY_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/pdfsignaturehelper.hxx b/xmlsecurity/inc/pdfsignaturehelper.hxx
index 24b92a7d3140..ea24685d2ae4 100644
--- a/xmlsecurity/inc/pdfsignaturehelper.hxx
+++ b/xmlsecurity/inc/pdfsignaturehelper.hxx
@@ -8,8 +8,7 @@
*
*/
-#ifndef INCLUDED_XMLSECURITY_INC_PDFSIGNATUREHELPER_HXX
-#define INCLUDED_XMLSECURITY_INC_PDFSIGNATUREHELPER_HXX
+#pragma once
#include "xmlsecuritydllapi.h"
@@ -71,6 +70,4 @@ public:
sal_uInt16 nPosition);
};
-#endif // INCLUDED_XMLSECURITY_INC_PDFSIGNATUREHELPER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/resourcemanager.hxx b/xmlsecurity/inc/resourcemanager.hxx
index 3640db40a63f..8bb4ae13443d 100644
--- a/xmlsecurity/inc/resourcemanager.hxx
+++ b/xmlsecurity/inc/resourcemanager.hxx
@@ -17,13 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_SOURCE_DIALOGS_RESOURCEMANAGER_HXX
-#define INCLUDED_XMLSECURITY_SOURCE_DIALOGS_RESOURCEMANAGER_HXX
+#pragma once
#include <unotools/resmgr.hxx>
inline OUString XsResId(const char* pId) { return Translate::get(pId, Translate::Create("xsc")); }
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsignaturehelper.hxx
index 85dc769d8268..ae0b10c9d239 100644
--- a/xmlsecurity/inc/xmlsignaturehelper.hxx
+++ b/xmlsecurity/inc/xmlsignaturehelper.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_INC_XMLSIGNATUREHELPER_HXX
-#define INCLUDED_XMLSECURITY_INC_XMLSIGNATUREHELPER_HXX
+#pragma once
#include <tools/link.hxx>
#include <rtl/ustring.hxx>
@@ -162,6 +161,4 @@ public:
void ExportSignatureContentTypes(const css::uno::Reference<css::embed::XStorage>& xStorage, int nSignatureCount);
};
-#endif // INCLUDED_XMLSECURITY_INC_XMLSIGNATUREHELPER_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/xmlsignaturehelper2.hxx b/xmlsecurity/inc/xmlsignaturehelper2.hxx
index 2b28fa0d410d..67c9ae69f8ba 100644
--- a/xmlsecurity/inc/xmlsignaturehelper2.hxx
+++ b/xmlsecurity/inc/xmlsignaturehelper2.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_INC_XMLSIGNATUREHELPER2_HXX
-#define INCLUDED_XMLSECURITY_INC_XMLSIGNATUREHELPER2_HXX
+#pragma once
#include <rtl/ustring.hxx>
@@ -49,6 +48,4 @@ public:
static css::uno::Reference < css::io::XInputStream > OpenInputStream( const css::uno::Reference < css::embed::XStorage >& rxStore, const OUString& rURI );
};
-#endif // INCLUDED_XMLSECURITY_INC_XMLSIGNATUREHELPER2_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmlsecurity/inc/xsecctl.hxx b/xmlsecurity/inc/xsecctl.hxx
index 324f1c43388b..ff0b9e232137 100644
--- a/xmlsecurity/inc/xsecctl.hxx
+++ b/xmlsecurity/inc/xsecctl.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSECURITY_SOURCE_HELPER_XSECCTL_HXX
-#define INCLUDED_XMLSECURITY_SOURCE_HELPER_XSECCTL_HXX
+#pragma once
#include <svl/sigstruct.hxx>
@@ -400,6 +399,4 @@ public:
void exportOOXMLSignature(const css::uno::Reference<css::embed::XStorage>& xRootStorage, const css::uno::Reference<css::xml::sax::XDocumentHandler>& xDocumentHandler, const SignatureInformation& rInformation);
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */