Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 6, 2010, 2:35:53 PM (14 years ago)
Author:
rgrieder
Message:

Removed obsolete code from Convert.h and replaced last occurrences of getConvertedValue with just two arguments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/doc/src/libraries/core/command/TclThreadManager.cc

    r7361 r7365  
    256256    void TclThreadManager::initialize(TclInterpreterBundle* bundle)
    257257    {
    258         const std::string& id_string = getConvertedValue<unsigned int, std::string>(bundle->id_);
     258        const std::string& id_string = multi_cast<std::string>(bundle->id_);
    259259
    260260        // Initialize the new interpreter
     
    408408            {
    409409                // This query would lead to a deadlock - return with an error
    410                 TclThreadManager::error("Error: Circular query (" + this->dumpList(source_bundle->queriers_.getList()) + ' ' + getConvertedValue<unsigned int, std::string>(source_bundle->id_) \
    411                             + " -> " + getConvertedValue<unsigned int, std::string>(target_bundle->id_) \
    412                             + "), couldn't query Tcl-interpreter with ID " + getConvertedValue<unsigned int, std::string>(target_bundle->id_) \
    413                             + " from other interpreter with ID " + getConvertedValue<unsigned int, std::string>(source_bundle->id_) + '.');
     410                TclThreadManager::error("Error: Circular query (" + this->dumpList(source_bundle->queriers_.getList()) + ' ' + multi_cast<std::string>(source_bundle->id_) \
     411                            + " -> " + multi_cast<std::string>(target_bundle->id_) \
     412                            + "), couldn't query Tcl-interpreter with ID " + multi_cast<std::string>(target_bundle->id_) \
     413                            + " from other interpreter with ID " + multi_cast<std::string>(source_bundle->id_) + '.');
    414414            }
    415415            else
     
    477477                    // This happens if the main thread tries to query a busy interpreter
    478478                    // To avoid a lock of the main thread, we simply don't proceed with the query in this case
    479                     TclThreadManager::error("Error: Couldn't query Tcl-interpreter with ID " + getConvertedValue<unsigned int, std::string>(target_bundle->id_) + ", interpreter is busy right now.");
     479                    TclThreadManager::error("Error: Couldn't query Tcl-interpreter with ID " + multi_cast<std::string>(target_bundle->id_) + ", interpreter is busy right now.");
    480480                }
    481481            }
     
    523523        else
    524524        {
    525             TclThreadManager::error("Error: No Tcl-interpreter with ID " + getConvertedValue<unsigned int, std::string>(id) + " existing.");
     525            TclThreadManager::error("Error: No Tcl-interpreter with ID " + multi_cast<std::string>(id) + " existing.");
    526526            return 0;
    527527        }
     
    539539                output += ' ';
    540540
    541             output += getConvertedValue<unsigned int, std::string>(*it);
     541            output += multi_cast<std::string>(*it);
    542542        }
    543543        return output;
     
    591591        if (cc != TCL_OK)
    592592        {
    593             TclThreadManager::error("Tcl error (" + action + ", ID " + getConvertedValue<unsigned int, std::string>(bundle->id_) + "): " + static_cast<std::string>(result));
     593            TclThreadManager::error("Tcl error (" + action + ", ID " + multi_cast<std::string>(bundle->id_) + "): " + static_cast<std::string>(result));
    594594            return "";
    595595        }
Note: See TracChangeset for help on using the changeset viewer.