diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-08-21 16:48:17 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-08-21 16:48:30 +0300 |
commit | ecae2b16c1d82de9434208262e09831de6d55391 (patch) | |
tree | def9edb9157434837da692688dd8329b7cc951aa /connectivity/source/drivers/macab | |
parent | 04fe3543503b3cda553ddb378bb21047d8310bcf (diff) |
WaE: 'valueOf' is deprecated
Change-Id: I9e7e0872eeb5011b79648e1fca436d09304c44ef
Diffstat (limited to 'connectivity/source/drivers/macab')
4 files changed, 8 insertions, 8 deletions
diff --git a/connectivity/source/drivers/macab/MacabAddressBook.cxx b/connectivity/source/drivers/macab/MacabAddressBook.cxx index b337f4ccc79d..1ba152ed6951 100644 --- a/connectivity/source/drivers/macab/MacabAddressBook.cxx +++ b/connectivity/source/drivers/macab/MacabAddressBook.cxx @@ -237,7 +237,7 @@ void MacabAddressBook::manageDuplicateGroups(::std::vector<MacabGroup *> _xGroup { OUString sName = (*iter1)->getName(); sName += OUString(" (") + - OUString::valueOf(count) + + OUString::number(count) + OUString(")"); (*iter1)->setName(sName); } diff --git a/connectivity/source/drivers/macab/MacabPreparedStatement.cxx b/connectivity/source/drivers/macab/MacabPreparedStatement.cxx index 152bd3fd7ee3..1072dacb4ac8 100644 --- a/connectivity/source/drivers/macab/MacabPreparedStatement.cxx +++ b/connectivity/source/drivers/macab/MacabPreparedStatement.cxx @@ -328,7 +328,7 @@ void SAL_CALL MacabPreparedStatement::setObject(sal_Int32 parameterIndex, const { const OUString sError( m_pConnection->getResources().getResourceStringWithSubstitution( STR_UNKNOWN_PARA_TYPE, - "$position$", OUString::valueOf(parameterIndex) + "$position$", OUString::number(parameterIndex) ) ); ::dbtools::throwGenericSQLException(sError,*this); } diff --git a/connectivity/source/drivers/macab/MacabRecord.cxx b/connectivity/source/drivers/macab/MacabRecord.cxx index b814b4415242..2ebd7869429a 100644 --- a/connectivity/source/drivers/macab/MacabRecord.cxx +++ b/connectivity/source/drivers/macab/MacabRecord.cxx @@ -316,7 +316,7 @@ OUString MacabRecord::fieldToString(const macabfield *_aField) // Should we check for the wrong type here, e.g., a float? sal_Bool m_bSuccess = !CFNumberGetValue((CFNumberRef) _aField->value, numberType, &nVal); if(m_bSuccess != sal_False) - fieldString = OUString::valueOf(nVal); + fieldString = OUString::number(nVal); } break; case kABRealProperty: @@ -326,7 +326,7 @@ OUString MacabRecord::fieldToString(const macabfield *_aField) // Should we check for the wrong type here, e.g., an int? sal_Bool m_bSuccess = !CFNumberGetValue((CFNumberRef) _aField->value, numberType, &nVal); if(m_bSuccess != sal_False) - fieldString = OUString::valueOf(nVal); + fieldString = OUString::number(nVal); } break; default: diff --git a/connectivity/source/drivers/macab/MacabRecords.cxx b/connectivity/source/drivers/macab/MacabRecords.cxx index 1f4769b3f505..2efea4ed71c1 100644 --- a/connectivity/source/drivers/macab/MacabRecords.cxx +++ b/connectivity/source/drivers/macab/MacabRecords.cxx @@ -761,7 +761,7 @@ MacabHeader *MacabRecords::createHeaderForProperty(const ABPropertyType _propert { arrValue = (CFTypeRef) CFArrayGetValueAtIndex( (CFArrayRef) _propertyValue, i); arrType = (ABPropertyType) getABTypeFromCFType( CFGetTypeID(arrValue) ); - arrLabelString = propertyNameString + OUString::valueOf(i); + arrLabelString = propertyNameString + OUString::number(i); arrLabel = OUStringToCFString(arrLabelString); arrHeaders[i] = createHeaderForProperty(arrType, arrValue, arrLabel); if (!arrHeaders[i]) @@ -836,7 +836,7 @@ void MacabRecords::manageDuplicateHeaders(macabfield **_headerNames, const sal_I // There is probably a better way to do this... OUString newName = CFStringToOUString((CFStringRef) _headerNames[i]->value); CFRelease(_headerNames[i]->value); - newName += OUString(" (") + OUString::valueOf(count) + OUString(")"); + newName += OUString(" (") + OUString::number(count) + OUString(")"); _headerNames[i]->value = OUStringToCFString(newName); } } @@ -957,7 +957,7 @@ void MacabRecords::insertPropertyIntoMacabRecord(const ABPropertyType _propertyT { bPlaced = sal_False; i++; - columnName = OUString(_propertyName) + OUString(" (") + OUString::valueOf(i) + OUString(")"); + columnName = OUString(_propertyName) + OUString(" (") + OUString::number(i) + OUString(")"); } // success! @@ -986,7 +986,7 @@ void MacabRecords::insertPropertyIntoMacabRecord(const ABPropertyType _propertyT for(i = 0; i < arrLength; i++) { arrValue = CFArrayGetValueAtIndex( (CFArrayRef) _propertyValue, i); - newPropertyName = _propertyName + OUString::valueOf(i); + newPropertyName = _propertyName + OUString::number(i); insertPropertyIntoMacabRecord(_abrecord, _header, newPropertyName, arrValue); CFRelease(arrValue); } |