| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I don't recommend defining CString_AC as CStr255_AC. It would have the
effect of changing the MacApp implementation.
> const char* data() const{ return CChar255_AC(*this); }
That's returning a pointer to temporary stack data. It's inherently unsafe.
How about:
#if MA_Version >= 0x0F00
#define MyString CString_AC
#else
#define MyString CStr255_AC
#endif
I think it has to be a #define rather than a typedef, so you can override
methods that take a string as an argument.
| References: | |
| >Re: R14->R15 (From: Tom Becker <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.