mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 01:32:42 +01:00 
			
		
		
		
	move Glib ustring format helper to utils
this formatter is useful for other modules which want to print Glib exceptions messages
This commit is contained in:
		@@ -8,13 +8,7 @@
 | 
			
		||||
#include <fstream>
 | 
			
		||||
#include <map>
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
struct fmt::formatter<Glib::ustring> : formatter<std::string> {
 | 
			
		||||
  template <typename FormatContext>
 | 
			
		||||
  auto format(const Glib::ustring& value, FormatContext& ctx) {
 | 
			
		||||
    return formatter<std::string>::format(value, ctx);
 | 
			
		||||
  }
 | 
			
		||||
};
 | 
			
		||||
#include "util/format.hpp"
 | 
			
		||||
 | 
			
		||||
template <>
 | 
			
		||||
struct fmt::formatter<Glib::VariantBase> : formatter<std::string> {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user