Having two young ones in the house, I have switched from swearing to saying "ouch!" or "ow!" when hurt. The pain relief effect still works just fine. I wish their study had included non-swearing verbal emotional response.
A colleague of mine said the exact opposite a couple of days ago - having hit his hand with a hammer, he was unable to use the words he wanted because his four-year-old was around, and that was annoying.