code_junkie

C++ construction weird uninitialized pointer

Nov 12th, 2011
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. AlertEvent::AlertEvent(const std::string& text) :
  2. IMEvent(kIMEventAlert, alertText.c_str()),
  3. alertText(text)
  4. {
  5. //inspection at time of crash shows alertText is a valid string
  6. }
  7.  
  8.  
  9. IMEvent::IMEvent(long eventID, const char* details)
  10. {
  11. //during construction, details==0xcccccccc
  12. }
  13.  
  14. AlertEvent::AlertEvent(const std::string& text) :
  15. IMEvent(kIMEventAlert, text.c_str()),
  16. alertText(text)
  17. {
  18. //inspection at time of crash shows alertText is a valid string
  19. }
  20.  
  21.  
  22. IMEvent::IMEvent(long eventID, const char* details)
  23. {
  24. //during construction, details==0xcccccccc
  25. }
Add Comment
Please, Sign In to add comment