| 164 | */ |
| 165 | |
| 166 | char **GDALMajorObject::BuildMetadataDomainList(char **papszList, |
| 167 | int bCheckNonEmpty, ...) |
| 168 | { |
| 169 | va_list args; |
| 170 | const char *pszDomain = nullptr; |
| 171 | va_start(args, bCheckNonEmpty); |
| 172 | |
| 173 | while ((pszDomain = va_arg(args, const char *)) != nullptr) |
| 174 | { |
| 175 | if (CSLFindString(papszList, pszDomain) < 0 && |
| 176 | (!bCheckNonEmpty || GetMetadata(pszDomain) != nullptr)) |
| 177 | { |
| 178 | papszList = CSLAddString(papszList, pszDomain); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | va_end(args); |
| 183 | |
| 184 | return papszList; |
| 185 | } |
| 186 | |
| 187 | /************************************************************************/ |
| 188 | /* GDALGetMetadataDomainList() */ |
nothing calls this directly
no test coverage detected