OpenDDLExport: Reduce scope of a variable
parent
ef91211231
commit
fc59f190ae
|
@ -359,11 +359,10 @@ bool OpenDDLExport::writeValueArray( DataArrayList *al, std::string &statement )
|
||||||
}
|
}
|
||||||
|
|
||||||
DataArrayList *nextDataArrayList = al ;
|
DataArrayList *nextDataArrayList = al ;
|
||||||
Value *nextValue( nextDataArrayList->m_dataList );
|
|
||||||
while (ddl_nullptr != nextDataArrayList) {
|
while (ddl_nullptr != nextDataArrayList) {
|
||||||
if (ddl_nullptr != nextDataArrayList) {
|
if (ddl_nullptr != nextDataArrayList) {
|
||||||
statement += "{ ";
|
statement += "{ ";
|
||||||
nextValue = nextDataArrayList->m_dataList;
|
Value *nextValue( nextDataArrayList->m_dataList );
|
||||||
size_t idx( 0 );
|
size_t idx( 0 );
|
||||||
while (ddl_nullptr != nextValue) {
|
while (ddl_nullptr != nextValue) {
|
||||||
if (idx > 0) {
|
if (idx > 0) {
|
||||||
|
|
Loading…
Reference in New Issue