summaryrefslogtreecommitdiff
path: root/desktop/unx
diff options
context:
space:
mode:
authorGeorge Bateman <george.bateman16@gmail.com>2020-09-13 12:12:01 +0000
committerJulien Nabet <serval2412@yahoo.fr>2020-09-13 19:09:54 +0200
commitdcbe844e291b7efa9ea7eaf280186ce97df075b2 (patch)
tree8fb4f984fb1f444612ef756dca2bc0a80bc2a57a /desktop/unx
parentd4ceea4ca9d9abb47a6f84da138c2918bc7100e0 (diff)
tdf#124176 Use #pragma once in desktop
This commit was carried out by a Python script, source of which is at https://bugs.documentfoundation.org/show_bug.cgi?id=124176#c97. Change-Id: I26f01467d2a572a51c7ace76628d4a8f96f249a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102553 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'desktop/unx')
-rw-r--r--desktop/unx/source/file_image.h5
-rw-r--r--desktop/unx/source/pagein.h5
-rw-r--r--desktop/unx/source/splashx.h5
3 files changed, 3 insertions, 12 deletions
diff --git a/desktop/unx/source/file_image.h b/desktop/unx/source/file_image.h
index 60fdc8e96a16..6f0194d17ebf 100644
--- a/desktop/unx/source/file_image.h
+++ b/desktop/unx/source/file_image.h
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_DESKTOP_UNX_SOURCE_FILE_IMAGE_H
-#define INCLUDED_DESKTOP_UNX_SOURCE_FILE_IMAGE_H
+#pragma once
#ifndef INCLUDED_STDDEF_H
#include <stddef.h>
@@ -67,6 +66,4 @@ int file_image_close (
}
#endif
-#endif /* INCLUDED_ODEP_IMAGE_H */
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/unx/source/pagein.h b/desktop/unx/source/pagein.h
index 308fca530ada..f8820c76c961 100644
--- a/desktop/unx/source/pagein.h
+++ b/desktop/unx/source/pagein.h
@@ -17,13 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_DESKTOP_UNX_SOURCE_PAGEIN_H
-#define INCLUDED_DESKTOP_UNX_SOURCE_PAGEIN_H
+#pragma once
#include <sal/config.h>
void pagein_execute(char const* path, char const* file);
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/desktop/unx/source/splashx.h b/desktop/unx/source/splashx.h
index 55c128136dd2..0ca1ba655961 100644
--- a/desktop/unx/source/splashx.h
+++ b/desktop/unx/source/splashx.h
@@ -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_DESKTOP_UNX_SOURCE_SPLASHX_H
-#define INCLUDED_DESKTOP_UNX_SOURCE_SPLASHX_H
+#pragma once
#include <rtl/ustring.h>
@@ -27,6 +26,4 @@ void splash_draw_progress(struct splash* splash, int progress);
} // extern "C"
#endif
-#endif // INCLUDED_DESKTOP_UNX_SOURCE_SPLASHX_H
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */