summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-25 20:16:26 +0200
committerNoel Grandin <noel@peralex.com>2014-09-26 15:27:17 +0200
commit04fd62096fca2c0b917ac6172104399e65933585 (patch)
tree3e1d4e9c8b9aed6b308103c5e235f71ec3b2cce1 /dbaccess
parent5501c8d2220ee3cab703d09d348e99ba3e017dba (diff)
remove unnecessary casts in calls to SvStream.WriteInt32
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I0c0172519479be0535a447e41a592fbf782751bd
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/tabledesign/TableRow.cxx6
-rw-r--r--dbaccess/source/ui/tabledesign/TableRowExchange.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableRow.cxx b/dbaccess/source/ui/tabledesign/TableRow.cxx
index 2b30c3d3f776..3f7d2e103c3f 100644
--- a/dbaccess/source/ui/tabledesign/TableRow.cxx
+++ b/dbaccess/source/ui/tabledesign/TableRow.cxx
@@ -104,7 +104,7 @@ namespace dbaui
OFieldDescription* pFieldDesc = _rRow.GetActFieldDescr();
if(pFieldDesc)
{
- _rStr.WriteInt32( (sal_Int32)1 );
+ _rStr.WriteInt32( 1 );
_rStr.WriteUniOrByteString(pFieldDesc->GetName(), _rStr.GetStreamCharSet());
_rStr.WriteUniOrByteString(pFieldDesc->GetDescription(), _rStr.GetStreamCharSet());
_rStr.WriteUniOrByteString(pFieldDesc->GetHelpText(), _rStr.GetStreamCharSet());
@@ -127,13 +127,13 @@ namespace dbaui
_rStr.WriteInt32( pFieldDesc->GetScale() );
_rStr.WriteInt32( pFieldDesc->GetIsNullable() );
_rStr.WriteInt32( pFieldDesc->GetFormatKey() );
- _rStr.WriteInt32( (sal_Int32)pFieldDesc->GetHorJustify() );
+ _rStr.WriteInt32( pFieldDesc->GetHorJustify() );
_rStr.WriteInt32( pFieldDesc->IsAutoIncrement() ? 1 : 0 );
_rStr.WriteInt32( pFieldDesc->IsPrimaryKey() ? 1 : 0 );
_rStr.WriteInt32( pFieldDesc->IsCurrency() ? 1 : 0 );
}
else
- _rStr.WriteInt32( (sal_Int32)0 );
+ _rStr.WriteInt32( 0 );
return _rStr;
}
SvStream& ReadOTableRow( SvStream& _rStr, OTableRow& _rRow )
diff --git a/dbaccess/source/ui/tabledesign/TableRowExchange.cxx b/dbaccess/source/ui/tabledesign/TableRowExchange.cxx
index e2acae64a14f..37e68dd35e6e 100644
--- a/dbaccess/source/ui/tabledesign/TableRowExchange.cxx
+++ b/dbaccess/source/ui/tabledesign/TableRowExchange.cxx
@@ -37,7 +37,7 @@ namespace dbaui
::std::vector< ::boost::shared_ptr<OTableRow> >* pRows = reinterpret_cast< ::std::vector< ::boost::shared_ptr<OTableRow> >* >(pUserObject);
if(pRows)
{
- (*rxOStm).WriteInt32( (sal_Int32)pRows->size() ); // first stream the size
+ (*rxOStm).WriteInt32( pRows->size() ); // first stream the size
::std::vector< ::boost::shared_ptr<OTableRow> >::const_iterator aIter = pRows->begin();
::std::vector< ::boost::shared_ptr<OTableRow> >::const_iterator aEnd = pRows->end();
for(;aIter != aEnd;++aIter)