equal
deleted
inserted
replaced
77 /* Prefix the name with driver type to make it unique */ |
77 /* Prefix the name with driver type to make it unique */ |
78 char buf[32]; |
78 char buf[32]; |
79 strecpy(buf, GetDriverTypeName(type), lastof(buf)); |
79 strecpy(buf, GetDriverTypeName(type), lastof(buf)); |
80 strecpy(buf + 5, name, lastof(buf)); |
80 strecpy(buf + 5, name, lastof(buf)); |
81 |
81 |
82 std::pair<Drivers::iterator, bool> P = GetDrivers().insert(Drivers::value_type(buf, this)); |
82 #if !defined(NDEBUG) |
|
83 /* NDEBUG disables asserts and gives a warning: unused variable 'P' */ |
|
84 std::pair<Drivers::iterator, bool> P = |
|
85 #endif /* !NDEBUG */ |
|
86 GetDrivers().insert(Drivers::value_type(buf, this)); |
83 assert(P.second); |
87 assert(P.second); |
84 } |
88 } |
85 |
89 |
86 public: |
90 public: |
87 DriverFactoryBase() : |
91 DriverFactoryBase() : |