I don't mind leaning on people here either. (Heck! Without having to come to the MDA Forums I would have never started chatting with someone as awesome as you!) But honestly I would have rather learned properly from the start instead of having to make up for it now.
There's nothing wrong with treating your daughter at all though, don't get me wrong or anything. Just think of healthier options that you can share together. Or take the other route and help her learn that foods like cake are OK as an occasional indulgence but that there are healthier options. Eventually she'll learn to make wise food decisions for the majority of the time and still have the freedom to enjoy the occasional "bad" food once in a while without the guilt.