Fix Linux build and implementations with new systems and C++20 features
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
|
||||
Portions of this software are copyright © 2023 The FreeType
|
||||
Portions of this software are copyright � 2023 The FreeType
|
||||
Project (www.freetype.org). Please see LICENSE_FT.txt for more information.
|
||||
All rights reserved.
|
||||
*/
|
||||
@@ -96,10 +96,11 @@ public:
|
||||
return get_readOnly(ItemAttribute::Get(a));
|
||||
}
|
||||
inline const float&get_readOnly(const ItemAttribute&a)const{
|
||||
static float DEFAULT=0;
|
||||
if(attributes.count(a)){
|
||||
return attributes.at(a);
|
||||
}
|
||||
return 0;
|
||||
return DEFAULT;
|
||||
}
|
||||
inline auto begin()const{
|
||||
return attributes.begin();
|
||||
|
||||
Reference in New Issue
Block a user