AGDDModel: Fix cppcheck warnings.

Fix cppcheck warnings.

Merge request reports