Changeset 14047 for trunk


Ignore:
Timestamp:
06/02/12 21:33:54 (12 years ago)
Author:
tbretz
Message:
Exception handling around stoi needed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Database.h

    r14046 r14047  
    3030        server = what[5];
    3131        db     = what[9];
    32         port   = stoi(std::string(what[7]));
     32
     33        try
     34        {
     35            port = stoi(std::string(what[7]));
     36        }
     37        catch (...)
     38        {
     39            port = 0;
     40        }
    3341    }
    3442
Note: See TracChangeset for help on using the changeset viewer.