-/* $Id: filter_record_transform.cpp,v 1.8 2007-01-25 14:05:54 adam Exp $
+/* $Id: filter_record_transform.cpp,v 1.9 2007-03-20 07:57:54 adam Exp $
Copyright (c) 2005-2007, Index Data.
See the LICENSE file for details
YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS,
yaz_record_conv_get_error(rc));
}
- wrbuf_free(output_record, 1);
+ wrbuf_destroy(output_record);
}
}
}
-/* $Id: gduutil.cpp,v 1.17 2007-01-25 14:05:54 adam Exp $
+/* $Id: gduutil.cpp,v 1.18 2007-03-20 07:57:54 adam Exp $
Copyright (c) 2005-2007, Index Data.
See the LICENSE file for details
WRBUF wr = wrbuf_alloc();
yaz_query_to_wrbuf(wr, sr->query);
- os << wrbuf_buf(wr);
- wrbuf_free(wr, 1);
+ os << wrbuf_cstr(wr);
+ wrbuf_destroy(wr);
}
break;
case Z_APDU_searchResponse:
{
WRBUF wr = wrbuf_alloc();
yaz_scan_to_wrbuf(wr, sr->termListAndStartPoint, VAL_NONE);
- os << wrbuf_buf(wr);
- wrbuf_free(wr, 1);
+ os << wrbuf_cstr(wr);
+ wrbuf_destroy(wr);
}
else
os << " -";
-/* $Id: util.cpp,v 1.25 2007-01-25 14:05:54 adam Exp $
+/* $Id: util.cpp,v 1.26 2007-03-20 07:57:54 adam Exp $
Copyright (c) 2005-2007, Index Data.
See the LICENSE file for details
query_str = std::string(wrbuf_buf(w), wrbuf_len(w));
// destroy wrbuf
- wrbuf_free(w, 1);
+ wrbuf_destroy(w);
}
}