Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. error: invalid conversion from 'const XMLCh* {aka const short unsigned int*}' to 'XMLCh* {aka short unsigned int*}' [-fpermissive]
  2. #define X(str) XStr(str).unicodeForm()
  3. ^
  4. ------------------------
  5. using namespace xercesc;
  6. using namespace std;
  7.  
  8. class XStr
  9. {
  10. public :
  11. XStr(const char* const toTranscode)
  12. {
  13. // Call the private transcoding method
  14. fUnicodeForm = XMLString::transcode(toTranscode);
  15. }
  16.  
  17. ~XStr()
  18. {
  19. XMLString::release(&fUnicodeForm);
  20. }
  21.  
  22. const XMLCh* unicodeForm() const
  23. {
  24. return fUnicodeForm;
  25. }
  26.  
  27. private :
  28. XMLCh* fUnicodeForm;
  29. };
  30.  
  31. #define X(str) XStr(str).unicodeForm()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement