On Thu, 2012-03-08 at 18:43 +0100, Chris Kühl wrote:
> >> Note that there is already a GetEnv() in util.h which returns an empty
> >> std::string when getenv() returns NULL.
> >>
> >
> > Thanks, I wasn't aware. I'll change it to use that.
> >
>
> Hmm, upon inspection I don't actually see this. I only see getEnv()
> which returns a char*.
That's what I meant. It's a bit different from what I remembered; but
std::string(getEnv("foo", "")) achieves the desired effect.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
_______________________________________________
SyncEvolution mailing list
[email protected]
http://lists.syncevolution.org/listinfo/syncevolution