summaryrefslogtreecommitdiff
path: root/rsc/source/res/rscclass.cxx
diff options
context:
space:
mode:
authorPeter Senna Tschudin <peter.senna@gmail.com>2014-05-26 19:41:16 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-05-27 01:19:00 -0500
commit3b24dcc8a8138c1e1495c3dba5ffe5748cb183c2 (patch)
tree8250ea36b767d906cc6606ab81d198ffda2e8ee1 /rsc/source/res/rscclass.cxx
parenta1dedadbf0d87a1db24e9b336257678e059882f0 (diff)
Remove unnecessary semicolons
A simplified version of the semantic match that finds this problem is follows: (http://coccinelle.lip6.fr/) // <smpl> @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p << r1.p; p1 << r1.p1; @@ if p[0].line != p1[0].line_end: cocci.include_match(False) @@ position r1.p; @@ -;@p // </smpl> Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e Reviewed-on: https://gerrit.libreoffice.org/9493 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'rsc/source/res/rscclass.cxx')
-rw-r--r--rsc/source/res/rscclass.cxx44
1 files changed, 22 insertions, 22 deletions
diff --git a/rsc/source/res/rscclass.cxx b/rsc/source/res/rscclass.cxx
index a25f5a56ed8e..be6fd38aea5f 100644
--- a/rsc/source/res/rscclass.cxx
+++ b/rsc/source/res/rscclass.cxx
@@ -52,8 +52,8 @@ void RscClass::Pre_dtor()
pVarTypeList[ i ].pDefault ) );
rtl_freeMemory( pVarTypeList[ i ].pDefault );
pVarTypeList[ i ].pDefault = NULL;
- };
- };
+ }
+ }
}
RscClass::~RscClass()
@@ -106,7 +106,7 @@ RSCINST RscClass::GetInstData
}
else
aInst.pData = pData + pVarTypeList[ nEle ].nOffset;
- };
+ }
return aInst;
}
@@ -186,13 +186,13 @@ RSCINST RscClass::Create( RSCINST * pInst,
{
aMemInst = pVarTypeList[ i ].pClass->Create( NULL, aDfltI );
*ppData = aMemInst.pData;
- };
+ }
}
else
{
aMemInst = GetInstData( aInst.pData, i, true );
aMemInst = aMemInst.pClass->Create( &aMemInst, aDfltI );
- };
+ }
}
return aInst;
@@ -219,10 +219,10 @@ void RscClass::Destroy( const RSCINST & rInst )
{
// Speicher freigeben
rtl_freeMemory( aTmpI.pData );
- };
- };
+ }
+ }
}
- };
+ }
}
ERRTYPE RscClass::SetVariable( Atom nVarName,
@@ -274,7 +274,7 @@ ERRTYPE RscClass::SetVariable( Atom nVarName,
{
// Bereich fuer Default zu klein
RscExit( 16 );
- };
+ }
return ERR_OK;
}
@@ -351,11 +351,11 @@ RSCINST RscClass::GetVariable( const RSCINST & rInst,
*ppData = aTmpI.pData;
}
}
- };
+ }
// auf nicht Default setzen
SetVarDflt( rInst.pData, i, false );
return aTmpI;
- };
+ }
return RscTop::GetVariable( rInst, nVarName, rInitInst,
bInitDflt, pCreateClass );
@@ -387,9 +387,9 @@ RSCINST RscClass::GetCopyVar( const RSCINST & rInst, Atom nVarName)
else
aVarI = GetInstData( rInst.pData, i, true );
- };
+ }
return aVarI ;
- };
+ }
return RscTop::GetCopyVar( rInst, nVarName );
}
@@ -412,7 +412,7 @@ bool RscClass::IsConsistent( const RSCINST & rInst )
if( ! aTmpI.pClass->IsConsistent( aTmpI ) )
bRet = false;
}
- };
+ }
return bRet;
}
@@ -453,7 +453,7 @@ bool RscClass::IsDefault( const RSCINST & rInst )
if( !(VAR_NODATAINST & pVarTypeList[ i ].nVarType) )
if( !IsDflt( rInst.pData, i ) )
return false;
- };
+ }
return RscTop::IsDefault( rInst );
}
@@ -473,7 +473,7 @@ RSCINST RscClass::GetDefault( Atom nVarId )
aTmpI.pClass = pVarTypeList[ i ].pClass;
aTmpI.pData = GetDfltData( i );
return aTmpI;
- };
+ }
return RscTop::GetDefault( nVarId );
}
@@ -632,9 +632,9 @@ void RscClass::WriteSrc( const RSCINST & rInst,
aTmpI, fOutput, pTC, nTab, RscId(), pName );
fprintf( fOutput, ";\n" );
}
- };
- };
- };
+ }
+ }
+ }
return;
}
@@ -683,7 +683,7 @@ ERRTYPE RscClass::WriteInstRc( const RSCINST & rInst,
rMem.Put( sal_uInt32(0) );
break;
}
- };
+ }
for( i = 0; i < nEntries && aError.IsOk(); i++ )
{
@@ -862,8 +862,8 @@ void RscTupel::WriteSrc( const RSCINST & rInst, FILE * fOutput,
else
fprintf( fOutput, "Default" );
fprintf( fOutput, "; " );
- };
- };
+ }
+ }
fprintf( fOutput, ">" );
return;