Taking const reference of temporary object doesn't look good.

Otherwise it results in memory corruption when some of config categories doesn't exist.
Merge pull request #123 from 3Hren/master

Taking const reference of temporary object doesn't look good.