Skip to content

Commit

Permalink
Move Exceptions.h includes to .cpp files
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Jan 26, 2021
1 parent 7722914 commit 2f3615f
Show file tree
Hide file tree
Showing 76 changed files with 77 additions and 39 deletions.
1 change: 1 addition & 0 deletions src/AudioReaderSource.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "AudioReaderSource.h"
#include "Exceptions.h"

using namespace std;
using namespace openshot;
Expand Down
1 change: 0 additions & 1 deletion src/AudioResampler.h
Expand Up @@ -32,7 +32,6 @@
#define OPENSHOT_RESAMPLER_H

#include "AudioBufferSource.h"
#include "Exceptions.h"
#include "JuceHeader.h"

namespace openshot {
Expand Down
1 change: 0 additions & 1 deletion src/CacheBase.h
Expand Up @@ -34,7 +34,6 @@
#include <memory>
#include <cstdlib>
#include "Frame.h"
#include "Exceptions.h"
#include "Json.h"

namespace openshot {
Expand Down
1 change: 1 addition & 0 deletions src/CacheDisk.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "CacheDisk.h"
#include "Exceptions.h"
#include "QtUtilities.h"
#include <Qt>
#include <QString>
Expand Down
1 change: 0 additions & 1 deletion src/CacheDisk.h
Expand Up @@ -36,7 +36,6 @@
#include <memory>
#include "CacheBase.h"
#include "Frame.h"
#include "Exceptions.h"
#include <QDir>

namespace openshot {
Expand Down
1 change: 1 addition & 0 deletions src/CacheMemory.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "CacheMemory.h"
#include "Exceptions.h"

using namespace std;
using namespace openshot;
Expand Down
1 change: 0 additions & 1 deletion src/CacheMemory.h
Expand Up @@ -36,7 +36,6 @@
#include <memory>
#include "CacheBase.h"
#include "Frame.h"
#include "Exceptions.h"

namespace openshot {

Expand Down
1 change: 1 addition & 0 deletions src/ChunkReader.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "ChunkReader.h"
#include "Exceptions.h"
#include "FFmpegReader.h"

#include <QDir>
Expand Down
1 change: 1 addition & 0 deletions src/ChunkWriter.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "ChunkWriter.h"
#include "Exceptions.h"

using namespace openshot;

Expand Down
1 change: 0 additions & 1 deletion src/ChunkWriter.h
Expand Up @@ -35,7 +35,6 @@
#include "WriterBase.h"
#include "FFmpegWriter.h"
#include "CacheMemory.h"
#include "Exceptions.h"
#include "Json.h"

#include <cmath>
Expand Down
1 change: 1 addition & 0 deletions src/Clip.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "Clip.h"
#include "Exceptions.h"
#include "FFmpegReader.h"
#include "FrameMapper.h"
#ifdef USE_IMAGEMAGICK
Expand Down
1 change: 0 additions & 1 deletion src/ClipBase.h
Expand Up @@ -34,7 +34,6 @@
#include <memory>
#include <sstream>
#include "CacheMemory.h"
#include "Exceptions.h"
#include "Frame.h"
#include "Point.h"
#include "KeyFrame.h"
Expand Down
1 change: 1 addition & 0 deletions src/Color.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "Color.h"
#include "Exceptions.h"

using namespace openshot;

Expand Down
1 change: 1 addition & 0 deletions src/Coordinate.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "Coordinate.h"
#include "Exceptions.h"

using namespace std;
using namespace openshot;
Expand Down
1 change: 0 additions & 1 deletion src/Coordinate.h
Expand Up @@ -32,7 +32,6 @@
#define OPENSHOT_COORDINATE_H

#include <iostream>
#include "Exceptions.h"
#include "Fraction.h"
#include "Json.h"

Expand Down
1 change: 1 addition & 0 deletions src/DecklinkReader.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "DecklinkReader.h"
#include "Exceptions.h"

using namespace openshot;

Expand Down
1 change: 0 additions & 1 deletion src/DecklinkReader.h
Expand Up @@ -46,7 +46,6 @@
#include <unistd.h>

#include "CacheMemory.h"
#include "Exceptions.h"
#include "Frame.h"
#include "DecklinkInput.h"

Expand Down
1 change: 0 additions & 1 deletion src/DecklinkWriter.h
Expand Up @@ -46,7 +46,6 @@
#include <unistd.h>

#include "CacheMemory.h"
#include "Exceptions.h"
#include "Frame.h"
#include "DecklinkOutput.h"

Expand Down
1 change: 1 addition & 0 deletions src/DummyReader.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "DummyReader.h"
#include "Exceptions.h"

using namespace openshot;

Expand Down
1 change: 0 additions & 1 deletion src/DummyReader.h
Expand Up @@ -40,7 +40,6 @@
#include <stdio.h>
#include <memory>
#include "CacheMemory.h"
#include "Exceptions.h"
#include "Fraction.h"

namespace openshot
Expand Down
3 changes: 2 additions & 1 deletion src/EffectBase.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "EffectBase.h"
#include "Exceptions.h"

using namespace openshot;

Expand Down Expand Up @@ -148,4 +149,4 @@ openshot::ClipBase* EffectBase::ParentClip() {
/// Set parent clip object of this reader
void EffectBase::ParentClip(openshot::ClipBase* new_clip) {
clip = new_clip;
}
}
2 changes: 2 additions & 0 deletions src/Exceptions.h
Expand Up @@ -382,7 +382,9 @@ namespace openshot {
* @param file_path (optional) The input file being processed
*/
TooManySeeks(std::string message, std::string file_path="")
#ifndef SWIG
__attribute__ ((deprecated (TMS_DEP_MSG) ))
#endif
: ExceptionBase(message), file_path(file_path) { }
virtual ~TooManySeeks() noexcept {}
};
Expand Down
1 change: 1 addition & 0 deletions src/FFmpegReader.cpp
Expand Up @@ -32,6 +32,7 @@
*/

#include "FFmpegReader.h"
#include "Exceptions.h"

#include <thread> // for std::this_thread::sleep_for
#include <chrono> // for std::chrono::milliseconds
Expand Down
1 change: 0 additions & 1 deletion src/FFmpegReader.h
Expand Up @@ -46,7 +46,6 @@
#include <memory>
#include "CacheMemory.h"
#include "Clip.h"
#include "Exceptions.h"
#include "OpenMPUtilities.h"
#include "Settings.h"

Expand Down
1 change: 1 addition & 0 deletions src/FFmpegWriter.cpp
Expand Up @@ -32,6 +32,7 @@
*/

#include "FFmpegWriter.h"
#include "Exceptions.h"

#include <iostream>

Expand Down
1 change: 0 additions & 1 deletion src/FFmpegWriter.h
Expand Up @@ -49,7 +49,6 @@
#include <ctime>
#include <unistd.h>
#include "CacheMemory.h"
#include "Exceptions.h"
#include "OpenMPUtilities.h"
#include "ZmqLogger.h"
#include "Settings.h"
Expand Down
1 change: 1 addition & 0 deletions src/FrameMapper.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "FrameMapper.h"
#include "Exceptions.h"
#include "Clip.h"

using namespace std;
Expand Down
1 change: 0 additions & 1 deletion src/FrameMapper.h
Expand Up @@ -40,7 +40,6 @@
#include "ReaderBase.h"
#include "Frame.h"
#include "Fraction.h"
#include "Exceptions.h"
#include "KeyFrame.h"


Expand Down
1 change: 1 addition & 0 deletions src/ImageReader.cpp
Expand Up @@ -32,6 +32,7 @@
#ifdef USE_IMAGEMAGICK

#include "ImageReader.h"
#include "Exceptions.h"

using namespace openshot;

Expand Down
2 changes: 1 addition & 1 deletion src/ImageReader.h
Expand Up @@ -43,7 +43,7 @@
#include <stdio.h>
#include <memory>
#include "CacheMemory.h"
#include "Exceptions.h"

#include "MagickUtilities.h"

namespace openshot
Expand Down
1 change: 1 addition & 0 deletions src/ImageWriter.cpp
Expand Up @@ -35,6 +35,7 @@
#ifdef USE_IMAGEMAGICK

#include "ImageWriter.h"
#include "Exceptions.h"

using namespace openshot;

Expand Down
2 changes: 1 addition & 1 deletion src/ImageWriter.h
Expand Up @@ -49,7 +49,7 @@
#include <stdio.h>
#include <unistd.h>
#include "CacheMemory.h"
#include "Exceptions.h"

#include "OpenMPUtilities.h"
#include "MagickUtilities.h"

Expand Down
1 change: 1 addition & 0 deletions src/Json.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "Json.h"
#include "Exceptions.h"

const Json::Value openshot::stringToJson(const std::string value) {

Expand Down
2 changes: 1 addition & 1 deletion src/Json.h
Expand Up @@ -33,7 +33,7 @@

#include <string>
#include "json/json.h"
#include "Exceptions.h"


namespace openshot {
const Json::Value stringToJson(const std::string value);
Expand Down
1 change: 1 addition & 0 deletions src/KeyFrame.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "KeyFrame.h"
#include "Exceptions.h"
#include <algorithm>
#include <functional>
#include <utility>
Expand Down
2 changes: 1 addition & 1 deletion src/KeyFrame.h
Expand Up @@ -36,7 +36,7 @@
#include <cmath>
#include <assert.h>
#include <vector>
#include "Exceptions.h"

#include "Fraction.h"
#include "Coordinate.h"
#include "Point.h"
Expand Down
2 changes: 1 addition & 1 deletion src/OpenShot.h
Expand Up @@ -118,7 +118,7 @@
#include "Effects.h"
#include "EffectInfo.h"
#include "Enums.h"
#include "Exceptions.h"

#include "ReaderBase.h"
#include "WriterBase.h"
#include "FFmpegReader.h"
Expand Down
1 change: 1 addition & 0 deletions src/Point.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "Point.h"
#include "Exceptions.h"

using namespace std;
using namespace openshot;
Expand Down
2 changes: 1 addition & 1 deletion src/Point.h
Expand Up @@ -32,7 +32,7 @@
#define OPENSHOT_POINT_H

#include "Coordinate.h"
#include "Exceptions.h"

#include "Json.h"

namespace openshot
Expand Down
1 change: 1 addition & 0 deletions src/Profiles.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "Profiles.h"
#include "Exceptions.h"

using namespace openshot;

Expand Down
1 change: 0 additions & 1 deletion src/Profiles.h
Expand Up @@ -41,7 +41,6 @@
#include <QTextStream>
#include <cstdio>
#include <cstdlib>
#include "Exceptions.h"
#include "Fraction.h"
#include "Json.h"

Expand Down
1 change: 1 addition & 0 deletions src/Qt/PlayerPrivate.cpp
Expand Up @@ -30,6 +30,7 @@
*/

#include "PlayerPrivate.h"
#include "Exceptions.h"

#include <thread> // for std::this_thread::sleep_for
#include <chrono> // for std::chrono milliseconds, high_resolution_clock
Expand Down
1 change: 1 addition & 0 deletions src/Qt/VideoCacheThread.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "VideoCacheThread.h"
#include "Exceptions.h"
#include <algorithm>

#include <thread> // for std::this_thread::sleep_for
Expand Down
1 change: 1 addition & 0 deletions src/QtHtmlReader.cpp
Expand Up @@ -31,6 +31,7 @@
*/

#include "QtHtmlReader.h"
#include "Exceptions.h"
#include <QImage>
#include <QPainter>
#include <QTextDocument>
Expand Down
2 changes: 1 addition & 1 deletion src/QtHtmlReader.h
Expand Up @@ -43,7 +43,7 @@
#include <memory>
#include "CacheMemory.h"
#include "Enums.h"
#include "Exceptions.h"


class QImage;

Expand Down
1 change: 1 addition & 0 deletions src/QtImageReader.cpp
Expand Up @@ -29,6 +29,7 @@
*/

#include "QtImageReader.h"
#include "Exceptions.h"
#include "Settings.h"
#include "Clip.h"
#include "CacheMemory.h"
Expand Down
2 changes: 1 addition & 1 deletion src/QtImageReader.h
Expand Up @@ -37,7 +37,7 @@
#include <omp.h>
#include <stdio.h>
#include <memory>
#include "Exceptions.h"

#include "ReaderBase.h"

namespace openshot
Expand Down

0 comments on commit 2f3615f

Please sign in to comment.