Skip to content
Snippets Groups Projects
Commit 42bf88b5 authored by PeiYong Zhang's avatar PeiYong Zhang
Browse files

to generate code for private default constructor

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175882 13f79535-47bb-0310-9956-ffa450edef68
parent ce521033
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,9 @@
/*
* $Log$
* Revision 1.19 2004/04/20 15:30:49 peiyongz
* to generate code for private default constructor
*
* Revision 1.18 2003/05/14 19:11:34 gareth
* Added code creation for new method that returns error serverity the DOM way.
*
......@@ -707,6 +710,7 @@ int Xlat_main(int argC, XMLCh** argV)
//
fwprintf(outHeader, L"// This file is generated, don't edit it!!\n\n");
fwprintf(outHeader, L"#if !defined(ERRHEADER_%s)\n", xmlStrToPrintable(errNameSpace) );
releasePrintableStr
fwprintf(outHeader, L"#define ERRHEADER_%s\n\n", xmlStrToPrintable(errNameSpace) );
releasePrintableStr
......@@ -918,6 +922,14 @@ int Xlat_main(int argC, XMLCh** argV)
}
// the private default ctor
fwprintf(outHeader, L"\n");
fwprintf(outHeader, L"private:\n");
fwprintf(outHeader, L" // -----------------------------------------------------------------------\n");
fwprintf(outHeader, L" // Unimplemented constructors and operators\n");
fwprintf(outHeader, L" // -----------------------------------------------------------------------\n");
fwprintf(outHeader, L" %s();\n", xmlStrToPrintable(errNameSpace));
releasePrintableStr
// And close out the class declaration, the namespace declaration and the header file
fwprintf(outHeader, L"};\n\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment