-
-
- prefixQuery::prefixQuery(const char *pqn) {
- q = ZOOM_query_create();
- if (ZOOM_query_prefix(q, pqn) == -1) {
- ZOOM_query_destroy(q);
- throw queryError(queryError::PREFIX, pqn);
- }
+ prefixQuery::prefixQuery(const std::string &pqn) {
+ if (ZOOM_query_prefix(q, pqn.c_str()) == -1) {
+ throw queryException(queryException::PREFIX, pqn);
+ }