From 2ee04c397cdf79f6d491a0a93e374b1f5bb4677f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 10 Apr 2025 13:20:33 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#3367) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- platform/ios/src/MLNMapView.h | 4 ++-- platform/windows/include/gl_functions_wgl.h | 13 ++++++------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c0c2fbd80..8005f36d6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,14 +19,14 @@ repos: exclude: 'platform/android/MapLibreAndroid/src/main/java/org/maplibre/android/(location/LocationIndicatorLayer|style/layers/PropertyFactory)\.java$' - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v19.1.7 + rev: v20.1.0 hooks: - id: clang-format files: '.*\.(hpp|cpp|h)' exclude: 'vendor/.*' - repo: https://github.com/keith/pre-commit-buildifier - rev: 8.0.1 + rev: 8.0.3 hooks: - id: buildifier diff --git a/platform/ios/src/MLNMapView.h b/platform/ios/src/MLNMapView.h index 395c58efb..beafb9fb0 100644 --- a/platform/ios/src/MLNMapView.h +++ b/platform/ios/src/MLNMapView.h @@ -548,8 +548,8 @@ MLN_EXPORT `-setUserLocationVerticalAlignment:animated:` method instead. */ @property (nonatomic, assign) MLNAnnotationVerticalAlignment userLocationVerticalAlignment - __attribute__((deprecated("Use ``MLNMapViewDelegate/mapViewUserLocationAnchorPoint:`` instead.") - )); + __attribute__(( + deprecated("Use ``MLNMapViewDelegate/mapViewUserLocationAnchorPoint:`` instead."))); /** Sets the vertical alignment of the user location annotation within the diff --git a/platform/windows/include/gl_functions_wgl.h b/platform/windows/include/gl_functions_wgl.h index 4cd126aaf..952dbe5b8 100644 --- a/platform/windows/include/gl_functions_wgl.h +++ b/platform/windows/include/gl_functions_wgl.h @@ -1756,13 +1756,12 @@ void (*const glGetInternalformativ)(GLenum, GLenum, GLenum, GLsizei, GLint*) = /* OpenGL Windows Extensions */ -BOOL(*const wglChoosePixelFormatARB) -(HDC, const int*, const FLOAT*, UINT, int*, UINT*) = [](HDC hdc, - const int* piAttribIList, - const FLOAT* pfAttribFList, - UINT nMaxFormats, - int* piFormats, - UINT* nNumFormats) { +BOOL (*const wglChoosePixelFormatARB)(HDC, const int*, const FLOAT*, UINT, int*, UINT*) = [](HDC hdc, + const int* piAttribIList, + const FLOAT* pfAttribFList, + UINT nMaxFormats, + int* piFormats, + UINT* nNumFormats) { if (!opengl32) loadWGL(); return ::wgl_wglChoosePixelFormatARB(hdc, piAttribIList, pfAttribFList, nMaxFormats, piFormats, nNumFormats); };