git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@872
56b19765-1e22-0410-a548-
a0f45d66c51a
m_boardDict = new QDict<Board>();
}
- Board* newBoard = new Board( boardURL, boardName );
- m_boardDict->replace( boardURL, newBoard );
-
+ if ( m_boardDict->find( boardURL ) ) {
+ m_boardDict->find( boardURL )->m_boardName = boardName;
+ } else {
+ Board* newBoard = new Board( boardURL, boardName );
+ m_boardDict->insert( boardURL, newBoard );
+ }
return;
}
void BoardTest::testName()
{
CPPUNIT_ASSERT_EQUAL( QString( "Linux" ), m_share1->name() );
-
- // ¤³¤ì¤Ï¤ª¤«¤·¤¤!
- CPPUNIT_ASSERT_EQUAL( QString( "U**x" ), m_share2->name() );
+ CPPUNIT_ASSERT_EQUAL( QString( "Unix" ), m_share2->name() );
CPPUNIT_ASSERT_EQUAL( QString( "Unix" ), m_share3->name() );
CPPUNIT_ASSERT_EQUAL( QString::null, m_null->name() );
}