From: Adam Dickmeiss Date: Wed, 30 Oct 2002 09:13:12 +0000 (+0000) Subject: Visual Studio tweaks X-Git-Tag: YAZPP.0.5~6 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=c29b07cd7dc9cd6945bf79477e0ccd10252485bf;p=yazpp-moved-to-github.git Visual Studio tweaks --- diff --git a/zoom/master-header b/zoom/master-header index 7d004f4..56a7dd5 100644 --- a/zoom/master-header +++ b/zoom/master-header @@ -1,4 +1,4 @@ -// $Header: /home/cvsroot/yaz++/zoom/master-header,v 1.4 2002-10-10 22:47:51 mike Exp $ +// $Header: /home/cvsroot/yaz++/zoom/master-header,v 1.5 2002-10-30 09:13:31 adam Exp $ // // ZOOM C++ Binding. // The ZOOM homepage is at http://zoom.z3950.org/ @@ -122,8 +122,10 @@ namespace ZOOM { * const char *q; public: * ~queryException (); - static const int PREFIX = 1; - static const int CCL = 2; + enum { + PREFIX = 1, + CCL = 2 + }; queryException (int qtype, const char *source); int errcode () const; const char *errmsg () const; diff --git a/zoom/zexcept.cpp b/zoom/zexcept.cpp index 0b0f2ec..a012c5d 100644 --- a/zoom/zexcept.cpp +++ b/zoom/zexcept.cpp @@ -1,4 +1,4 @@ -// $Header: /home/cvsroot/yaz++/zoom/zexcept.cpp,v 1.4 2002-10-11 11:54:05 mike Exp $ +// $Header: /home/cvsroot/yaz++/zoom/zexcept.cpp,v 1.5 2002-10-30 09:13:12 adam Exp $ // Z39.50 Exception classes @@ -26,7 +26,7 @@ namespace ZOOM { - systemException::systemException() : exception::exception(errno){ + systemException::systemException() : exception(errno){ code = errno; } @@ -41,7 +41,7 @@ namespace ZOOM { bib1Exception::bib1Exception(int errcode, const char *addinfo) : - exception::exception(errcode) { + exception(errcode) { info = new char[strlen(addinfo)+1]; strcpy((char*) info, addinfo); //fprintf(stderr, "made new bib1Exception 0x%lx (%d, 0x%lx=%s)\n", @@ -50,7 +50,7 @@ namespace ZOOM { #if 0 bib1Exception::bib1Exception(bib1Exception& src) : - exception::exception(src) { + exception(src) { code = src.code; info = new char[strlen(src.info)+1]; strcpy((char*) info, src.info); @@ -84,7 +84,7 @@ namespace ZOOM { queryException::queryException(int qtype, const char *source) : - exception::exception(qtype) { + exception(qtype) { q = new char[strlen(source)+1]; strcpy((char*) q, source); }