I'd only worry about the charging aspect of the whole thing -- it's a solar charger, right? NiMH and NiCd don't accept the same charging voltage/amperage.
"If your charger isn't specifically labeled as handling NiMH batteries, then don't put NiMH batteries in it. You'll ruin your batteries (and maybe start a fire)."
Or
see here.