| 44 | } |
| 45 | |
| 46 | const char *FontNames::Save(const char *name) { |
| 47 | if (!name) |
| 48 | return 0; |
| 49 | |
| 50 | for (std::vector<char *>::const_iterator it=names.begin(); it != names.end(); ++it) { |
| 51 | if (strcmp(*it, name) == 0) { |
| 52 | return *it; |
| 53 | } |
| 54 | } |
| 55 | char *nameSave = new char[strlen(name) + 1]; |
| 56 | strcpy(nameSave, name); |
| 57 | names.push_back(nameSave); |
| 58 | return nameSave; |
| 59 | } |
| 60 | |
| 61 | FontRealised::FontRealised() { |
| 62 | } |
no outgoing calls
no test coverage detected