diff options
author | Catalin Iacob <iacobcatalin@gmail.com> | 2012-04-19 21:16:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-04-23 14:16:36 +0200 |
commit | 5b3d15241feb47e914c6835664a90c346d69411d (patch) | |
tree | d98e898f49bb15a69ab13d4bae28ab90a925e915 /connectivity | |
parent | 82e989726327a0b767df31b5812d3fd42fb2a4d8 (diff) |
WaE: Clang implicit conversion changes signedness
The various *Card* members call getByIndex(rowIndex) and getByIndex expects
sal_uInt32 so change everything to it. Change callers as well to adapt to
the change.
Diffstat (limited to 'connectivity')
3 files changed, 13 insertions, 13 deletions
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx b/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx index a4cc6005dce0..c3d151ece5dd 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MNSMozabProxy.cxx @@ -179,19 +179,19 @@ nsresult MNSMozabProxy::QueryHelperStub() case ProxiedFunc::FUNC_QUERYHELPER_DELETE_CARD: if (m_Args->arg2 && m_Args->arg3 ) //m_Args->arg2 used to get the cord number { - rv = mHelper->deleteCard(*((sal_Int32*)m_Args->arg2),(nsIAbDirectory*)m_Args->arg3); + rv = mHelper->deleteCard(*((sal_uInt32*)m_Args->arg2),(nsIAbDirectory*)m_Args->arg3); } break; case ProxiedFunc::FUNC_QUERYHELPER_COMMIT_CARD: if (m_Args->arg2 && m_Args->arg3 ) //m_Args->arg2 used to get the cord number { - rv = mHelper->commitCard(*((sal_Int32*)m_Args->arg2),(nsIAbDirectory*)m_Args->arg3); + rv = mHelper->commitCard(*((sal_uInt32*)m_Args->arg2),(nsIAbDirectory*)m_Args->arg3); } break; case ProxiedFunc::FUNC_QUERYHELPER_RESYNC_CARD: if (m_Args->arg2) //m_Args->arg2 used to get the cord number { - rv = mHelper->resyncRow(*((sal_Int32*)m_Args->arg2)); + rv = mHelper->resyncRow(*((sal_uInt32*)m_Args->arg2)); } break; default: diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx index 2c51dc93cfce..6e9079c6271b 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx @@ -470,7 +470,7 @@ nsIAbCard * getUpdatedCard( nsIAbCard* card) return sal_False; \ } -sal_Int32 MQueryHelper::commitCard(const sal_Int32 rowIndex,nsIAbDirectory * directory) +sal_Int32 MQueryHelper::commitCard(const sal_uInt32 rowIndex,nsIAbDirectory * directory) { ENSURE_MOZAB_PROFILE_NOT_LOOKED(directory); @@ -508,7 +508,7 @@ sal_Int32 MQueryHelper::commitCard(const sal_Int32 rowIndex,nsIAbDirectory * dir return !(NS_FAILED(rv)); } -sal_Int32 MQueryHelper::deleteCard(const sal_Int32 rowIndex,nsIAbDirectory * directory) +sal_Int32 MQueryHelper::deleteCard(const sal_uInt32 rowIndex,nsIAbDirectory * directory) { ENSURE_MOZAB_PROFILE_NOT_LOOKED(directory); MQueryHelperResultEntry *resEntry = getByIndex(rowIndex); @@ -555,7 +555,7 @@ sal_Int32 MQueryHelper::deleteCard(const sal_Int32 rowIndex,nsIAbDirectory * dir return !(NS_FAILED(rv)); } -sal_Bool MQueryHelper::setCardValues(const sal_Int32 rowIndex) +sal_Bool MQueryHelper::setCardValues(const sal_uInt32 rowIndex) { MQueryHelperResultEntry *resEntry = getByIndex(rowIndex); if (!resEntry) @@ -574,7 +574,7 @@ sal_Bool MQueryHelper::setCardValues(const sal_Int32 rowIndex) return sal_True; } -void MQueryHelper::getCardValues(nsIAbCard *card,sal_Int32 rowIndex) +void MQueryHelper::getCardValues(nsIAbCard *card,sal_uInt32 rowIndex) { MQueryHelperResultEntry *resEntry; if (rowIndex>0) @@ -589,7 +589,7 @@ void MQueryHelper::getCardValues(nsIAbCard *card,sal_Int32 rowIndex) if (!rowIndex) append( resEntry ); } -sal_Bool MQueryHelper::resyncRow(sal_Int32 rowIndex) +sal_Bool MQueryHelper::resyncRow(sal_uInt32 rowIndex) { MQueryHelperResultEntry *resEntry = getByIndex(rowIndex); diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.hxx b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.hxx index 741f935de256..948f6003870b 100644 --- a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.hxx +++ b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.hxx @@ -90,7 +90,7 @@ namespace connectivity void clearResultOrComplete(); void notifyResultOrComplete(); sal_Bool waitForResultOrComplete( ); - void getCardValues(nsIAbCard *card,sal_Int32 rowIndex=0); + void getCardValues(nsIAbCard *card,sal_uInt32 rowIndex=0); #if OSL_DEBUG_LEVEL > 0 oslThreadIdentifier m_oThreadID; #endif @@ -120,12 +120,12 @@ namespace connectivity sal_Int32 getResultCount() const; sal_uInt32 getRealCount() const; sal_Int32 createNewCard(); //return Row count number - sal_Bool resyncRow(sal_Int32 rowIndex); + sal_Bool resyncRow(sal_uInt32 rowIndex); void notifyQueryError() ; - sal_Bool setCardValues(const sal_Int32 rowIndex); - sal_Int32 commitCard(const sal_Int32 rowIndex, nsIAbDirectory * directory); - sal_Int32 deleteCard(const sal_Int32 rowIndex, nsIAbDirectory * directory); + sal_Bool setCardValues(const sal_uInt32 rowIndex); + sal_Int32 commitCard(const sal_uInt32 rowIndex, nsIAbDirectory * directory); + sal_Int32 deleteCard(const sal_uInt32 rowIndex, nsIAbDirectory * directory); }; } } |