X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fstyle.cpp;fp=source%2Fstyle.cpp;h=ddca1c454060ae9ba3f3d5dadae568996981dda6;hp=a339c0cb2bd913f2e336228cd0fb3fd2c63afb36;hb=9678abb23abe450109e2feda081f5bba5f20cc94;hpb=d10d1de6d17c285c63d7b3cea549017aaa1ddb01 diff --git a/source/style.cpp b/source/style.cpp index a339c0c..ddca1c4 100644 --- a/source/style.cpp +++ b/source/style.cpp @@ -29,7 +29,7 @@ const GL::Sampler &Style::get_sampler() const return *sampler; } -const Part *Style::get_part(const string &name) const +const Part *Style::find_part(const string &name) const { auto i = find_if(parts, [&name](const Part &p){ return p.get_name()==name; }); return (i!=parts.end() ? &*i : nullptr);