diff options
author | os <os@openoffice.org> | 2010-01-25 11:36:33 +0100 |
---|---|---|
committer | os <os@openoffice.org> | 2010-01-25 11:36:33 +0100 |
commit | 97c388dc9924a6e48d6a20c5e13b212a5818b8fc (patch) | |
tree | 197fbe59a1370b00be30170f5839d18a068e7c2f /sw/source/ui/dbui | |
parent | 260a7ed5586a2a39dbf141b0cb4ed22ee6bf7ff9 (diff) |
#i108582# strict aliasing warning fixed (cmc)
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r-- | sw/source/ui/dbui/dbinsdlg.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx index 30e886008da7..ed3efc3bb91d 100644 --- a/sw/source/ui/dbui/dbinsdlg.cxx +++ b/sw/source/ui/dbui/dbinsdlg.cxx @@ -1937,7 +1937,7 @@ void SwInsertDBColAutoPilot::Load() SwInsDBColumn& rSet = *aDBColumns[ n ]; for( USHORT m = 0; m < pNewData->aDBColumns.Count() ; ++m ) { - const SwInsDBColumn& rGet = *pNewData->aDBColumns[ m ]; + SwInsDBColumn& rGet = *pNewData->aDBColumns[ m ]; if(rGet.sColumn == rSet.sColumn) { if( rGet.bHasFmt && !rGet.bIsDBFmt ) @@ -1949,8 +1949,10 @@ void SwInsertDBColAutoPilot::Load() { xub_StrLen nCheckPos; short nType; - rNFmtr.PutEntry( (String&)rGet.sUsrNumFmt, nCheckPos, nType, + String sTmpFmt = rGet.sUsrNumFmt; + rNFmtr.PutEntry( sTmpFmt, nCheckPos, nType, rSet.nUsrNumFmt, rGet.eUsrNumFmtLng ); + rGet.sUsrNumFmt = sTmpFmt; } } break; |