Skip to content

Commit

Permalink
frame: refresh filesystem usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Saviq committed Apr 15, 2024
1 parent 008305e commit 622a65f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,11 @@ parts:
- pkg-config
- libmiral-dev
- libwayland-dev
- libboost-filesystem-dev
- libboost-iostreams-dev
- libapparmor-dev
- libfreetype6-dev
stage-packages:
- libboost-filesystem1.74.0
- libboost-iostreams1.74.0
- libboost-iostreams1.83.0
# Stage libmiral<n> indirectly as we cannot (since core22) do `try:/else:`
- libmiral-dev
prime:
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ add_executable(frame
)

# Check for boost
find_package(Boost 1.48.0 COMPONENTS filesystem iostreams REQUIRED)
find_package(Boost 1.48.0 COMPONENTS iostreams REQUIRED)

target_compile_definitions(frame PRIVATE MIR_LOG_COMPONENT="frame")

Expand Down
3 changes: 1 addition & 2 deletions src/background_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <sstream>

#include <boost/throw_exception.hpp>
#include <boost/filesystem.hpp>

#include <mir/fatal.h>

Expand Down Expand Up @@ -62,7 +61,7 @@ auto TextRenderer::DiagnosticText::from(Path const& path) -> DiagnosticText
static const int max_line_length = 250;


fs::ifstream in{path};
std::ifstream in{path};
std::vector<std::string> lines;
std::string line;
for (int line_count = 0; getline(in, line); ++line_count)
Expand Down

0 comments on commit 622a65f

Please sign in to comment.