I am glad to see a cruise line enforce their own dress code policy (I won't get into the fact that I'm personally glad it doesn't seem to apply to women, I can look at non-hairy legs all day).
I've been on many cruise lines and generally they don't enforce their own dress code. While I'm OK with them being "liberal" on formal nights, when the dress code says no shorts in the main dining room, to have men (and women) walk past the matre'd without a word just doesn't make sense. Enforce the dress code or do away with it.
As a side note, what did your female companion think about you trying to throw her under the bus?