[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/kpovmodeler
From: Laurent Montel <montel () kde ! org>
Date: 2008-11-28 22:18:08
Message-ID: 1227910688.527187.19795.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 890322 by mlaurent:
Fix iterator
M +1 -1 pmerrordialog.cpp
M +4 -4 pmpart.cpp
M +2 -2 pmpovrayrenderwidget.cpp
M +2 -2 pmrendermanager.cpp
--- trunk/extragear/graphics/kpovmodeler/pmerrordialog.cpp #890321:890322
@@ -83,7 +83,7 @@
text = "<qt>\n";
- for(it = m_messages.begin( ); it != m_messages.end( ); ++it )
+ for(it = m_messages.constBegin( ); it != m_messages.constEnd( ); ++it )
text += "<p>" + (*it).text( ) + "</p>\n";
text += "</qt>";
--- trunk/extragear/graphics/kpovmodeler/pmpart.cpp #890321:890322
@@ -2080,8 +2080,8 @@
if( obj->isA( "Declare" ) )
{
PMDeclare* decl = ( PMDeclare* ) obj;
- PMSymbolTable::const_iterator sit = m_pSymbolTable->find( decl->id( ) );
- if( sit == m_pSymbolTable->end( ) )
+ PMSymbolTable::const_iterator sit = m_pSymbolTable->constFind( decl->id( ) );
+ if( sit == m_pSymbolTable->constEnd( ) )
m_pSymbolTable->insert( decl->id( ), new PMSymbol( decl->id( ), decl ) );
}
if( obj->type( ) == "Camera" )
@@ -2153,8 +2153,8 @@
if( obj->isA( "Declare" ) )
{
PMDeclare* d = ( PMDeclare* ) obj;
- PMSymbolTable::const_iterator sit = m_pSymbolTable->find( oldID );
- if( sit != m_pSymbolTable->end( ) )
+ PMSymbolTable::const_iterator sit = m_pSymbolTable->constFind( oldID );
+ if( sit != m_pSymbolTable->constEnd( ) )
{
if( (*sit)->type( ) == PMSymbol::Object )
{
--- trunk/extragear/graphics/kpovmodeler/pmpovrayrenderwidget.cpp #890321:890322
@@ -97,11 +97,11 @@
QStringList::ConstIterator it;
QStringList args = m_renderMode.commandLineSwitches( );
- for( it = args.begin( ); it != args.end( ); ++it ) {
+ for( it = args.constBegin( ); it != args.constEnd( ); ++it ) {
*m_pProcess << *it;
}
- for( it = s_libraryPaths.begin( ); it != s_libraryPaths.end( ); ++it )
+ for( it = s_libraryPaths.constBegin( ); it != s_libraryPaths.constEnd( ); ++it )
{
QString path = *it;
if( path != QString( "/" ) )
--- trunk/extragear/graphics/kpovmodeler/pmrendermanager.cpp #890321:890322
@@ -497,10 +497,10 @@
if( objectToRender->type( ) == "QuickColor" )
{
PMQuickColor* qc = ( PMQuickColor* ) objectToRender;
- PMObjectList::const_iterator it = m_objectToRenderStack.end( );
+ PMObjectList::const_iterator it = m_objectToRenderStack.constEnd( );
bool pofound = false;
- while( it != m_objectToRenderStack.begin( ) && !pofound )
+ while( it != m_objectToRenderStack.constBegin( ) && !pofound )
{
--it;
if( ( *it )->isA( "GraphicalObject" ) )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic