removed some temp aborts from projectM top level

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/represet@1160 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2008-09-14 05:22:58 +00:00
parent a706a0fe85
commit a4a3fdc4b6
9 changed files with 55 additions and 155 deletions

View File

@ -53,9 +53,9 @@ void PresetFactoryManager::registerFactory(const std::string & extensions, Prese
std::string extension;
while (ss >> extension) {
if (_factoryMap.count(extension)) {
std::cerr << "[PresetFactoryManager] Warning: extension \"" << extension <<
"\" already has a factory. New factory handler ignored." << std::endl;
if (_factoryMap.count(extension)) {
std::cerr << "[PresetFactoryManager] Warning: extension \"" << extension <<
"\" already has a factory. New factory handler ignored." << std::endl;
} else {
_factoryMap.insert(std::make_pair(extension, factory));
_factoryList.push_back(factory);
@ -65,7 +65,7 @@ void PresetFactoryManager::registerFactory(const std::string & extensions, Prese
PresetFactory & PresetFactoryManager::factory(const std::string & extension) {
if (!_factoryMap.count(extension)) {
if (!_factoryMap.count(extension)) {
std::ostringstream os;
os << "No factory associated with \"" << extension << "\"." << std::endl;
throw PresetFactoryException(os.str());