vlc | branch: master | Francois Cartegnie <[email protected]> | Thu Jul 30 
11:03:46 2020 +0200| [6099ac613e9b99116d94371845f88808bfe8e626] | committer: 
Francois Cartegnie

freetype: dwrite: fix -Wmicrosoft-exception-spec

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6099ac613e9b99116d94371845f88808bfe8e626
---

 modules/text_renderer/freetype/fonts/dwrite.cpp | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/modules/text_renderer/freetype/fonts/dwrite.cpp 
b/modules/text_renderer/freetype/fonts/dwrite.cpp
index 950ae55f06..1e46381dfc 100644
--- a/modules/text_renderer/freetype/fonts/dwrite.cpp
+++ b/modules/text_renderer/freetype/fonts/dwrite.cpp
@@ -227,27 +227,28 @@ public:
     virtual ~TextSource() {}
 
     virtual HRESULT STDMETHODCALLTYPE GetLocaleName( UINT32, UINT32 *,
-                                             const WCHAR **ppwsz_locale_name )
+                                        const WCHAR **ppwsz_locale_name ) 
noexcept
     {
         *ppwsz_locale_name = L"en-US";
         return S_OK;
     }
 
     virtual HRESULT STDMETHODCALLTYPE GetNumberSubstitution( UINT32, UINT32 *,
-                                                     IDWriteNumberSubstitution 
**pp_substitution )
+                                        IDWriteNumberSubstitution 
**pp_substitution ) noexcept
     {
         mp_substitution->AddRef();
         *pp_substitution = mp_substitution;
         return S_OK;
     }
 
-    virtual DWRITE_READING_DIRECTION STDMETHODCALLTYPE 
GetParagraphReadingDirection()
+    virtual DWRITE_READING_DIRECTION STDMETHODCALLTYPE 
GetParagraphReadingDirection() noexcept
     {
         return DWRITE_READING_DIRECTION_LEFT_TO_RIGHT;
     }
 
-    virtual HRESULT STDMETHODCALLTYPE GetTextAtPosition( UINT32 
i_text_position, const WCHAR **ppwsz_text,
-                                                 UINT32 *pi_text_length )
+    virtual HRESULT STDMETHODCALLTYPE GetTextAtPosition( UINT32 
i_text_position,
+                                                         const WCHAR 
**ppwsz_text,
+                                                         UINT32 
*pi_text_length ) noexcept
     {
         if( i_text_position > mi_text_length )
             return E_INVALIDARG;
@@ -258,8 +259,9 @@ public:
         return S_OK;
     }
 
-    virtual HRESULT STDMETHODCALLTYPE GetTextBeforePosition( UINT32 
i_text_position, const WCHAR **ppwsz_text,
-                                                     UINT32 *pi_text_length )
+    virtual HRESULT STDMETHODCALLTYPE GetTextBeforePosition( UINT32 
i_text_position,
+                                                             const WCHAR 
**ppwsz_text,
+                                                             UINT32 
*pi_text_length ) noexcept
     {
         if( i_text_position > mi_text_length )
             return E_INVALIDARG;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to