浏览代码

formatting

UwU 4 周之前
父节点
当前提交
69063098a7

+ 1 - 2
src/WallpaperEngine/Data/Parsers/MaterialParser.cpp

@@ -40,8 +40,7 @@ std::vector<std::string> MaterialParser::textureNames (const Project& project, c
 		names.push_back (texture);
 	    }
 	}
-    } catch (const std::exception&) {
-    }
+    } catch (const std::exception&) { }
 
     return names;
 }

+ 4 - 8
src/WallpaperEngine/Render/TextureCache.cpp

@@ -613,8 +613,7 @@ void TextureCache::startPrefetchThreads () {
 		Logging::guardThread ("Texture prefetch", [&] { this->prefetchWorker (stop); });
 	    });
 	}
-    } catch (const std::system_error&) {
-    }
+    } catch (const std::system_error&) { }
 }
 
 void TextureCache::beginPrefetch (
@@ -656,8 +655,7 @@ void TextureCache::scanPrefetch (
 
     try {
 	names ([&] (const std::vector<std::string> found) { return this->prefetchNames (project, found, generation); });
-    } catch (const std::exception&) {
-    }
+    } catch (const std::exception&) { }
 
     const Debugging::LockGuard lock (this->m_prefetchMutex);
 
@@ -833,8 +831,7 @@ void TextureCache::runPrefetch (const std::shared_ptr<Prefetched>& job) {
 			    pixels = decodeImageRGBA (
 				mipmap.uncompressedData.get (), mipmap.uncompressedSize, width, height
 			    );
-			} catch (const std::exception&) {
-			}
+			} catch (const std::exception&) { }
 
 			if (pixels != nullptr) {
 			    mipmap.decodedPixels = std::shared_ptr<unsigned char> (pixels, stbi_image_free);
@@ -849,8 +846,7 @@ void TextureCache::runPrefetch (const std::shared_ptr<Prefetched>& job) {
 		    for (size_t i = 1; i < std::min<size_t> (mipmaps.size (), 4); i++) {
 			helpers.emplace_back (decode);
 		    }
-		} catch (const std::system_error&) {
-		}
+		} catch (const std::system_error&) { }
 
 		decode ();
 

+ 3 - 6
src/WallpaperEngine/Render/Wallpapers/CScene.cpp

@@ -281,8 +281,7 @@ void warmShader (const ShaderRequest& request) {
 	(void)Shaders::GLSLContext::get ().toGlsl (
 	    shader.vertex (), shader.fragment (), request.name, shader.geometry ()
 	);
-    } catch (const std::exception&) {
-    }
+    } catch (const std::exception&) { }
 }
 
 bool isTextureFile (const std::string& name) { return !name.empty () && !isFramebufferName (name); }
@@ -360,8 +359,7 @@ std::vector<std::string> meshTextureNames (
 		names.push_back (std::move (texture));
 	    }
 	}
-    } catch (const std::exception&) {
-    }
+    } catch (const std::exception&) { }
 
     std::erase_if (names, [] (const std::string& name) { return !isTextureFile (name); });
 
@@ -556,8 +554,7 @@ CScene::CScene (
 				this->storeParsedModel (
 				    model, Objects::CMesh::parseModel (*this->readModelFile (model))
 				);
-			    } catch (const std::exception&) {
-			    }
+			    } catch (const std::exception&) { }
 			}
 		    }
 		}