diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2016-05-03 21:22:28 -0400 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2016-05-04 02:23:30 +0000 |
commit | fa507ae23e1e5e0dd73fe881284bfb41a2eb1315 (patch) | |
tree | 5b8a0b5baab8e7af38f3b8bb695bee49d3e1cfe3 /sc/source/ui/unoobj | |
parent | fe81d707b5b4e832b249ae879a75f336cd06a81f (diff) |
Replace namespace ScErrorCodes with formula...
and remove that 'using namespace' statement in the header...
Change-Id: I2f994af5088ce6d1ffe92c8d36285a4f6fdd2248
Reviewed-on: https://gerrit.libreoffice.org/24628
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/funcuno.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx index fcc1266e88d5..9b04fb1b45ae 100644 --- a/sc/source/ui/unoobj/cellsuno.cxx +++ b/sc/source/ui/unoobj/cellsuno.cxx @@ -1147,7 +1147,7 @@ static bool lcl_PutDataArray( ScDocShell& rDocShell, const ScRange& rRange, case uno::TypeClass_VOID: { // void = "no value" - rDoc.SetError( nDocCol, nDocRow, nTab, NOTAVAILABLE ); + rDoc.SetError( nDocCol, nDocRow, nTab, formula::NOTAVAILABLE ); } break; diff --git a/sc/source/ui/unoobj/funcuno.cxx b/sc/source/ui/unoobj/funcuno.cxx index 0ec86590bee2..c5cb6d2a4791 100644 --- a/sc/source/ui/unoobj/funcuno.cxx +++ b/sc/source/ui/unoobj/funcuno.cxx @@ -621,7 +621,7 @@ uno::Any SAL_CALL ScFunctionAccess::callFunction( const OUString& aName, // if there is no matrix result const ScMatrix* pMat = (mbArray && pFormula) ? pFormula->GetMatrix() : nullptr; - sal_uInt16 nErrCode = pFormula ? pFormula->GetErrCode() : errIllegalArgument; + sal_uInt16 nErrCode = pFormula ? pFormula->GetErrCode() : formula::errIllegalArgument; if ( nErrCode == 0 ) { if ( pMat ) @@ -641,7 +641,7 @@ uno::Any SAL_CALL ScFunctionAccess::callFunction( const OUString& aName, aRet <<= aStrVal; } } - else if ( nErrCode == NOTAVAILABLE ) + else if ( nErrCode == formula::NOTAVAILABLE ) { // #N/A: leave result empty, no exception } |