gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] gnash ChangeLog server/as_object.cpp server/as_...


From: strk
Subject: Re: [Gnash-commit] gnash ChangeLog server/as_object.cpp server/as_...
Date: Thu, 22 Mar 2007 18:09:23 +0100

On Thu, Mar 22, 2007 at 04:56:36PM +0000, Bastiaan Jacques wrote:

> +std::string
> +as_object::asPropName(std::string name)

I used a similar thing in another file, callign it 'lower_if_needed'
My version took a std::string *reference* and returned void,
changing the string in place.
Note that whatever you choose to do, taking the string by value
as you are will copy the string. Use const reference if you won't
change, or non-const reference if you'll eventually change.

--strk;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]