summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-08 15:41:15 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-11 06:20:10 +0000
commitf3dabe7507b578484805255eae31d8a1358e605c (patch)
tree385c39e2080d74e4e82ad5d363af201c7f11d19a /include
parent234f10eb26b70bb2ab412dd46d2763f3a7f555ff (diff)
make GetGlobalUNOConstant and GetUNOConstant take an OUString
and eliminate converting backwards and forwards between sal_Char*/OString/OUString Change-Id: Iaf52ce93f0e732ab338f75d21b95ab4b020a4d6f Reviewed-on: https://gerrit.libreoffice.org/23919 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/basic/basmgr.hxx4
-rw-r--r--include/basic/sbstar.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/basic/basmgr.hxx b/include/basic/basmgr.hxx
index 7277585dccf2..8b65beff4e27 100644
--- a/include/basic/basmgr.hxx
+++ b/include/basic/basmgr.hxx
@@ -185,10 +185,10 @@ public:
returned. If it does not yet exist, it is newly created, and inserted into the basic library.
*/
css::uno::Any
- SetGlobalUNOConstant( const sal_Char* _pAsciiName, const css::uno::Any& _rValue );
+ SetGlobalUNOConstant( const OUString& rName, const css::uno::Any& _rValue );
/** retrieves a global constant in the basic library, referring to some UNO object, returns true if a value is found ( value is in aOut ) false otherwise. */
- bool GetGlobalUNOConstant( const sal_Char* _pAsciiName, css::uno::Any& aOut );
+ bool GetGlobalUNOConstant( const OUString& rName, css::uno::Any& aOut );
/** determines whether there are password-protected modules whose size exceedes the
legacy module size
@param _out_rModuleNames
diff --git a/include/basic/sbstar.hxx b/include/basic/sbstar.hxx
index 670e597b4ecc..a0e23453ba8a 100644
--- a/include/basic/sbstar.hxx
+++ b/include/basic/sbstar.hxx
@@ -155,7 +155,7 @@ public:
SbxObjectRef getRTL() { return pRtl; }
bool IsDocBasic() { return bDocBasic; }
SbxVariable* VBAFind( const OUString& rName, SbxClassType t );
- bool GetUNOConstant( const sal_Char* _pAsciiName, css::uno::Any& aOut );
+ bool GetUNOConstant( const OUString& rName, css::uno::Any& aOut );
void QuitAndExitApplication();
bool IsQuitApplication() { return bQuit; };