Avoid creation of temporary object (Fixes #124)

@arnaudgelas I guess the following should fix the problem. As I was not able to produce this warning message, and was therefore not able to check.