You're thinking Hong Kong. Gibraltar is British territory in perpetuity, even though numerous British administrations have tried to hand it back to Spain, only to back off in the face of adverse British public reaction.
Thank you for that information about the legal status of Gilbralter. I did some reading up and I was in error. It's what I was told on the tour.
I've learned a lesson here....check facts presented on tours.