Und3rMySk1n / ood

0 stars 0 forks source link

Замечания по фабрике #3

Open alexey-malov opened 7 years ago

alexey-malov commented 7 years ago
alexey-malov commented 7 years ago
CShapeFactory::CreateShape
alexey-malov commented 7 years ago
    for (auto it = draft.begin(); it != draft.end(); it++)
    {
        it->Draw(canvas);
    }
alexey-malov commented 7 years ago
    canvas.SetColor(this->GetColor());
alexey-malov commented 7 years ago
std::unique_ptr<CShape> CShapeFactory::GetRectangleWithParams(std::vector<std::string> params) const
alexey-malov commented 7 years ago
class CMockShape : public CShape
{
public:
    CMockShape(const string& descr)
        : descr(descr)
        , CShape()
    {
    }
alexey-malov commented 7 years ago
1>c:\teaching\ood\2017-ood\koptelin\ood\lab04_factory\libpainter\utils.h(10): warning C4505: 'GetColorFromString': unreferenced local function has been removed
1>c:\teaching\ood\2017-ood\koptelin\ood\lab04_factory\libpainter\utils.h(38): warning C4505: 'GetParamsFromString': unreferenced local function has been removed
1>ShapeFactory.cpp
1>c:\teaching\ood\2017-ood\koptelin\ood\lab04_factory\libpainter\utils.h(24): warning C4505: 'ColorAsString': unreferenced local function has been removed
1>Shape.cpp