metonymy
Metonymy refers to idioms in which the name of one thing is used for that of another associated with it.