[Libreoffice-commits] core.git: connectivity/source
connectivity/source/drivers/firebird/Table.cxx |2 +- connectivity/source/drivers/firebird/Tables.cxx |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) New commits: commit eee035a7c0d8923134d0e3a8520d13706ce9bf9f Author: Faruk Demirbaş AuthorDate: Tue Jan 28 10:43:36 2020 +0300 Commit: Michael Stahl CommitDate: Thu Feb 20 11:00:38 2020 +0100 tdf#42982: Improve UNO API error reporting Change-Id: I36bf1809a296e2d559911f9132fedf84fcd1e249 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87577 Tested-by: Michael Stahl Reviewed-by: Michael Stahl diff --git a/connectivity/source/drivers/firebird/Table.cxx b/connectivity/source/drivers/firebird/Table.cxx index df523235e2ac..0220a8458264 100644 --- a/connectivity/source/drivers/firebird/Table.cxx +++ b/connectivity/source/drivers/firebird/Table.cxx @@ -225,7 +225,7 @@ void SAL_CALL Table::alterColumnByName(const OUString& rColName, // - XRename -- void SAL_CALL Table::rename(const OUString&) { -throw RuntimeException(); // Firebird doesn't support this. +throw RuntimeException("Table renaming not supported by Firebird."); } // - XInterface --- diff --git a/connectivity/source/drivers/firebird/Tables.cxx b/connectivity/source/drivers/firebird/Tables.cxx index dc8255dbda61..7be79b5a2d4a 100644 --- a/connectivity/source/drivers/firebird/Tables.cxx +++ b/connectivity/source/drivers/firebird/Tables.cxx @@ -51,7 +51,7 @@ ObjectType Tables::createObject(const OUString& rName) uno::Sequence< OUString >()); if (!xTables.is()) -throw RuntimeException(); +throw RuntimeException("Could not acquire table."); uno::Reference< XRow > xRow(xTables,UNO_QUERY_THROW); @@ -66,7 +66,7 @@ ObjectType Tables::createObject(const OUString& rName) xRow->getString(5))); // Description / Remarks / Comments if (xTables->next()) -throw RuntimeException(); // Only one table should be returned +throw RuntimeException("Found more tables than expected."); return xRet; } ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] core.git: xmlsecurity/source
xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) New commits: commit 627e40b9ef7ba8e9b5b06adc4a553d95cd5e5560 Author: Faruk Demirbaş AuthorDate: Mon Jan 27 14:58:22 2020 +0300 Commit: Muhammet Kara CommitDate: Tue Jan 28 21:18:50 2020 +0100 tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor Change-Id: I0e792603435b7a1d9fcacf67a694ee8c4cc24a7b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87516 Tested-by: Jenkins Reviewed-by: Muhammet Kara diff --git a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx index 9f2c8e43acdc..834bf57694fa 100644 --- a/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/xmlsignature_nssimpl.cxx @@ -304,8 +304,7 @@ sal_Bool SAL_CALL XMLSignature_NssImpl::supportsService(const OUString& rService /* XServiceInfo */ Sequence SAL_CALL XMLSignature_NssImpl::getSupportedServiceNames() { -Sequence seqServiceNames { "com.sun.star.xml.crypto.XMLSignature" }; -return seqServiceNames; +return { "com.sun.star.xml.crypto.XMLSignature" }; } extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] core.git: formula/inc
formula/inc/core_resource.hxx |5 + 1 file changed, 1 insertion(+), 4 deletions(-) New commits: commit 37b20089669e5d6f20db863ed770647ba8b1bd37 Author: Faruk Demirbaş AuthorDate: Sat Jan 25 15:05:07 2020 +0300 Commit: Muhammet Kara CommitDate: Sat Jan 25 19:10:42 2020 +0100 tdf#124176: Use pragma once instead of include guards Change-Id: I4a4e18cf3c61aaebb467e43ebbf846e8860f4105 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87388 Tested-by: Jenkins Reviewed-by: Muhammet Kara diff --git a/formula/inc/core_resource.hxx b/formula/inc/core_resource.hxx index 1990a36c14e3..8a8f49b77b0f 100644 --- a/formula/inc/core_resource.hxx +++ b/formula/inc/core_resource.hxx @@ -17,14 +17,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_FORMULA_SOURCE_CORE_INC_CORE_RESOURCE_HXX -#define INCLUDED_FORMULA_SOURCE_CORE_INC_CORE_RESOURCE_HXX +#pragma once #include #include FORMULA_DLLPUBLIC OUString ForResId(const char *pId); -#endif // INCLUDED_FORMULA_SOURCE_CORE_INC_CORE_RESOURCE_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] core.git: sc/inc
sc/inc/NumberFormatControl.hxx |6 ++ sc/inc/documentlinkmgr.hxx |5 + sc/inc/filtopt.hxx |5 + sc/inc/fonthelper.hxx |5 + sc/inc/forbiuno.hxx|5 + 5 files changed, 6 insertions(+), 20 deletions(-) New commits: commit a44ca770302e8aa7079de96bda0c2fe2e7cc92bb Author: Faruk Demirbaş AuthorDate: Sat Jan 25 16:28:07 2020 +0300 Commit: Muhammet Kara CommitDate: Sat Jan 25 19:01:50 2020 +0100 tdf#124176: Use pragma once instead of include guards Change-Id: I2c74c77115df7c9fd29ccf7722d00c71687046fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87402 Tested-by: Jenkins Reviewed-by: Muhammet Kara diff --git a/sc/inc/NumberFormatControl.hxx b/sc/inc/NumberFormatControl.hxx index e2c8712b7032..56ec8ed0e3cb 100644 --- a/sc/inc/NumberFormatControl.hxx +++ b/sc/inc/NumberFormatControl.hxx @@ -16,8 +16,8 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_NUMBERFORMATCONTROL_HXX -#define INCLUDED_SC_NUMBERFORMATCONTROL_HXX + +#pragma once #include "scdllapi.h" #include @@ -40,6 +40,4 @@ public: } // end of namespace sc -#endif // INCLUDED_SC_NUMBERFORMATCONTROL_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/inc/documentlinkmgr.hxx b/sc/inc/documentlinkmgr.hxx index b0c85826b4db..99a3ca3e5a95 100644 --- a/sc/inc/documentlinkmgr.hxx +++ b/sc/inc/documentlinkmgr.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_INC_DOCUMENTLINKMGR_HXX -#define INCLUDED_SC_INC_DOCUMENTLINKMGR_HXX +#pragma once #include #include @@ -68,6 +67,4 @@ private: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/inc/filtopt.hxx b/sc/inc/filtopt.hxx index 212fca328232..50dfdfbbf373 100644 --- a/sc/inc/filtopt.hxx +++ b/sc/inc/filtopt.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_INC_FILTOPT_HXX -#define INCLUDED_SC_INC_FILTOPT_HXX +#pragma once #include #include "scdllapi.h" @@ -40,6 +39,4 @@ public: boolGetWK3Flag() const { return bWK3Flag; } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/inc/fonthelper.hxx b/sc/inc/fonthelper.hxx index f3ecf2bfb9c5..0f94b41400cc 100644 --- a/sc/inc/fonthelper.hxx +++ b/sc/inc/fonthelper.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_INC_FONTHELPER_HXX -#define INCLUDED_SC_INC_FONTHELPER_HXX +#pragma once #include "scdllapi.h" #include @@ -46,6 +45,4 @@ struct SC_DLLPUBLIC ScDxfFont } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/inc/forbiuno.hxx b/sc/inc/forbiuno.hxx index ac599c010a47..b6440f4eb7fb 100644 --- a/sc/inc/forbiuno.hxx +++ b/sc/inc/forbiuno.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_INC_FORBIUNO_HXX -#define INCLUDED_SC_INC_FORBIUNO_HXX +#pragma once #include #include @@ -40,6 +39,4 @@ public: virtual voidNotify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits