Use const references
Merge pull request #2 from SfietKonstantin/fix

Use const references