mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
chore: few codefactor issues
This commit is contained in:
parent
fd0f142517
commit
4c6cfb356c
@ -12,7 +12,6 @@ namespace WallpaperEngine::Data::Builders {
|
|||||||
using namespace WallpaperEngine::Data::Utils::SFINAE;
|
using namespace WallpaperEngine::Data::Utils::SFINAE;
|
||||||
|
|
||||||
class VectorBuilder {
|
class VectorBuilder {
|
||||||
private:
|
|
||||||
/**
|
/**
|
||||||
* Convert template that calls the proper std::strto* function
|
* Convert template that calls the proper std::strto* function
|
||||||
* based on the incoming type
|
* based on the incoming type
|
||||||
|
@ -136,6 +136,7 @@ class JsonExtensions {
|
|||||||
// call the specialized version of the function
|
// call the specialized version of the function
|
||||||
return operator glm::vec <length, typename GlmVecTraits<T>::type, qualifier> ();
|
return operator glm::vec <length, typename GlmVecTraits<T>::type, qualifier> ();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
* @return The base json object to be used by the extension methods
|
* @return The base json object to be used by the extension methods
|
||||||
|
@ -34,7 +34,6 @@ CImage::CImage (Wallpapers::CScene& scene, const Image& image) :
|
|||||||
m_pos (),
|
m_pos (),
|
||||||
m_animationTime (0.0),
|
m_animationTime (0.0),
|
||||||
m_initialized (false) {
|
m_initialized (false) {
|
||||||
|
|
||||||
// get scene width and height to calculate positions
|
// get scene width and height to calculate positions
|
||||||
auto scene_width = static_cast<float> (scene.getWidth ());
|
auto scene_width = static_cast<float> (scene.getWidth ());
|
||||||
auto scene_height = static_cast<float> (scene.getHeight ());
|
auto scene_height = static_cast<float> (scene.getHeight ());
|
||||||
|
Loading…
Reference in New Issue
Block a user