[Libreoffice-commits] core.git: shell/source

2022-09-15 Thread Mahdi Tizabi (via logerrit)
 shell/source/sessioninstall/SyncDbusSessionHelper.hxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cab4fd84ff9f59027d4de5a0bb96d50b7b07df13
Author: Mahdi Tizabi 
AuthorDate: Wed Jun 29 22:08:34 2022 +0430
Commit: Hossein 
CommitDate: Thu Sep 15 15:10:35 2022 +0200

tdf#42982 Improved UNO API error reporting

Making `RuntimeException` instances's messages in  
'SyncDbusSessionHelper.hxx' more clear.

Change-Id: I40105102f8785536d29e103a44d20d11c68943bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136629
Tested-by: Jenkins
Reviewed-by: Hossein 

diff --git a/shell/source/sessioninstall/SyncDbusSessionHelper.hxx 
b/shell/source/sessioninstall/SyncDbusSessionHelper.hxx
index 7812604c9e01..4daa458509bf 100644
--- a/shell/source/sessioninstall/SyncDbusSessionHelper.hxx
+++ b/shell/source/sessioninstall/SyncDbusSessionHelper.hxx
@@ -43,7 +43,7 @@ namespace shell::sessioninstall
 virtual void SAL_CALL InstallGStreamerResources( const 
css::uno::Sequence< OUString >& resources, const OUString& interaction ) 
override;
 
 virtual void SAL_CALL InstallResources( const css::uno::Sequence< 
OUString >& /* types */, const css::uno::Sequence< OUString >& /* resources */, 
const OUString& /* interaction */ ) override
-{ throw css::uno::RuntimeException(); } // not implemented
+{ throw css::uno::RuntimeException("InstallResources is not 
implemented"); } // not implemented
 
 virtual void SAL_CALL RemovePackageByFiles( const 
css::uno::Sequence< OUString >& files, const OUString& interaction ) override;
 
@@ -53,7 +53,7 @@ namespace shell::sessioninstall
 virtual void SAL_CALL IsInstalled( const OUString& /* package_name 
*/, const OUString& /* interaction */, sal_Bool& /* installed */ ) override;
 
 virtual void SAL_CALL SearchFile( const OUString& /* file_name */, 
const OUString& /* interaction */, sal_Bool& /* installed */, OUString& /* 
package_name */ ) override
-{ throw css::uno::RuntimeException(); } // not implemented
+{ throw css::uno::RuntimeException("SearchFile is not 
implemented"); } // not implemented
 
 private:
 SyncDbusSessionHelper( const SyncDbusSessionHelper& ) = delete;


[Libreoffice-commits] core.git: vcl/source

2022-06-30 Thread Mahdi Tizabi (via logerrit)
 vcl/source/fontsubset/ttcr.hxx |5 +
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 5cbbbe559ea37b10f276b5a6231c9cc26f8bee12
Author: Mahdi Tizabi 
AuthorDate: Sat Jun 25 11:27:16 2022 +0430
Commit: Hossein 
CommitDate: Thu Jun 30 16:18:46 2022 +0200

tdf#143148 Use pragma once in vcl part

Change-Id: Idf48a2ee9909abb7817b37a546b5a94b13324068
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136437
Reviewed-by: Julien Nabet 
Tested-by: Jenkins

diff --git a/vcl/source/fontsubset/ttcr.hxx b/vcl/source/fontsubset/ttcr.hxx
index 76709e5dcb17..4ae1eebed8db 100644
--- a/vcl/source/fontsubset/ttcr.hxx
+++ b/vcl/source/fontsubset/ttcr.hxx
@@ -22,8 +22,7 @@
  * @brief TrueType font creator
  */
 
-#ifndef INCLUDED_VCL_SOURCE_FONTSUBSET_TTCR_HXX
-#define INCLUDED_VCL_SOURCE_FONTSUBSET_TTCR_HXX
+#pragma once
 
 #include 
 
@@ -215,6 +214,4 @@ extern "C"
  void TrueTypeCreatorDispose(vcl::TrueTypeCreator *_this);
 }
 
-#endif // INCLUDED_VCL_SOURCE_FONTSUBSET_TTCR_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */