summaryrefslogtreecommitdiff
path: root/include/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-12-02 13:36:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-12-02 17:48:06 +0100
commit5da0f455a63ea22b500943d7ff4c28fbb7a90cfb (patch)
treec432ab2a06450a2bb5185b3d73c34db6730ad601 /include/connectivity
parentd23c52cbf7e48130fec1e48bf726c563035a3497 (diff)
Simplify SQLError::ParamValue to just o3tl::optional<OUString>
Change-Id: Ib4878218fd758c6462de1841fb98b3ae8839d1ed Reviewed-on: https://gerrit.libreoffice.org/84217 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/connectivity')
-rw-r--r--include/connectivity/sqlerror.hxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/connectivity/sqlerror.hxx b/include/connectivity/sqlerror.hxx
index 9b75657290f4..db0f3824ab77 100644
--- a/include/connectivity/sqlerror.hxx
+++ b/include/connectivity/sqlerror.hxx
@@ -157,9 +157,9 @@ namespace connectivity
void raiseException(
const ErrorCondition _eCondition,
const css::uno::Reference< css::uno::XInterface >& _rxContext,
- const ParamValue& _rParamValue1 = ParamValue(),
- const ParamValue& _rParamValue2 = ParamValue(),
- const ParamValue& _rParamValue3 = ParamValue()
+ const o3tl::optional<OUString>& _rParamValue1 = o3tl::nullopt,
+ const o3tl::optional<OUString>& _rParamValue2 = o3tl::nullopt,
+ const o3tl::optional<OUString>& _rParamValue3 = o3tl::nullopt
) const;
/** throws an SQLException describing the given error condition
@@ -240,9 +240,9 @@ namespace connectivity
getSQLException(
const ErrorCondition _eCondition,
const css::uno::Reference< css::uno::XInterface >& _rxContext,
- const ParamValue& _rParamValue1 = ParamValue(),
- const ParamValue& _rParamValue2 = ParamValue(),
- const ParamValue& _rParamValue3 = ParamValue()
+ const o3tl::optional<OUString>& _rParamValue1 = o3tl::nullopt,
+ const o3tl::optional<OUString>& _rParamValue2 = o3tl::nullopt,
+ const o3tl::optional<OUString>& _rParamValue3 = o3tl::nullopt
) const;
private: