disable-zoom configure option
[yazpp-moved-to-github.git] / zoom / zquery.cpp
index 602663f..5b173c5 100644 (file)
@@ -1,8 +1,8 @@
-// $Header: /home/cvsroot/yaz++/zoom/zquery.cpp,v 1.2 2002-08-08 16:06:08 mike Exp $
+// $Header: /home/cvsroot/yaz++/zoom/zquery.cpp,v 1.4 2002-11-30 22:33:21 mike Exp $
 
 // Z39.50 Query classes
 
-#include "zoom++.h"
+#include "zoom.h"
 
 
 namespace ZOOM {
@@ -13,9 +13,9 @@ namespace ZOOM {
 
 
 
-    prefixQuery::prefixQuery(const char *pqn) {
+    prefixQuery::prefixQuery(const string &pqn) {
        q = ZOOM_query_create();
-       if (ZOOM_query_prefix(q, pqn) == -1) {
+       if (ZOOM_query_prefix(q, pqn.c_str()) == -1) {
            ZOOM_query_destroy(q);
            throw queryException(queryException::PREFIX, pqn);
        }
@@ -43,7 +43,7 @@ namespace ZOOM {
 
 
 
-    CCLQuery::CCLQuery(const char *ccl, void *qualset) {
+    CCLQuery::CCLQuery(const string &ccl, void *qualset) {
        throw "Oops.  No CCL support in ZOOM-C yet.  Sorry.";
     }