Project

Profile

Help

Revision 6304fb8b

Added by O'Neil Delpratt 5 months ago

Saxon/C bug fixes and development work

View differences:

latest10/hec/Saxon.C.API/SaxonApiException.cpp
26 26

  
27 27

  
28 28
	SaxonApiException::SaxonApiException(const char * m, const char * ec, const char * sysId, int linenumber){
29
		if(m != NULL) {
29
		if(m != nullptr) {
30 30
		    message = std::string(m);
31 31
		} else {
32 32
		    message = "";
......
34 34

  
35 35
        lineNumber = linenumber;
36 36

  
37
        if (ec != NULL) {
37
        if (ec != nullptr) {
38 38
            errorCode = std::string(ec);
39 39
        } else {
40 40
            errorCode = "";
41 41
        }
42 42

  
43
        if(sysId != NULL) {
43
        if(sysId != nullptr) {
44 44
            systemId = sysId;
45 45
        } else {
46 46
            systemId = "";
......
53 53
    /**
54 54
     * A destructor.
55 55
     */
56
	SaxonApiException::~SaxonApiException() throw {
56
	SaxonApiException::~SaxonApiException() noexcept {
57 57
        message.clear();
58 58
        errorCode.clear();
59 59
        systemId.clear();
......
62 62
    /**
63 63
     * Get the error code associated with the ith exception in the vector, if there is one
64 64
     * @param i - ith exception in the vector
65
     * @return the associated error code, or null if no error code is available
65
     * @return the associated error code, or nullptr if no error code is available
66 66
     */
67 67
	const char * SaxonApiException::getErrorCode(){
68 68
		return errorCode.c_str();

Also available in: Unified diff